Skip to content

Rename test functions to follow repository conventions #227

@josecelano

Description

@josecelano

This refactoring systematically renames all unit test functions that use the test_ prefix to follow the repository's established naming convention using the it_should_ prefix with behavior-driven naming.

Related Document: Refactor Plan - Rename Test Functions to Follow Conventions

Scope:

  • 21 files containing test functions with test_ prefix
  • Rename to follow it_should_{behavior}_when_{condition} pattern
  • Align with conventions in docs/contributing/testing/unit-testing.md

Implementation Strategy:

  • Work on one file at a time
  • Run tests after each file modification
  • Run linters after each file
  • Commit changes after each file

Benefits:

  • ✅ Clear behavior documentation in test names
  • ✅ Follows established repository conventions
  • ✅ Improves code discoverability and readability
  • ✅ Better adherence to BDD principles

See the refactor plan document for complete details including all 21 proposals organized by priority.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions