Skip to content

Test Case Naming Conventions #435

@philberty

Description

@philberty

At present, I have been creating test cases like generics1,2,3,4 etc, which is not helpful in terms of figuring out what they are testing. It has been ok for now since test cases are small.

Below is a simple naming convention that might help, but I wish to solicit feedback first.

  1. If its a github issue: name the test case issue-number.rs
  2. Else name the test case with language-feature.rs but contain a comment at the start of the test case what this test case covers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions