Skip to content

Rename test functions to follow repository conventions #227

Closed

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.

Activity

  1. self-assigned this
    on Dec 12, 2025
  2. added 13 commits that reference this issue on Dec 12, 2025
  3. added 2 commits that reference this issue on Dec 12, 2025
  4. added a commit that references this issue on Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions