Skip to content

Conversation

@smaye81
Copy link
Member

@smaye81 smaye81 commented Feb 9, 2024

This renames all tests and some test files to adhere to a loose naming convention:

  • Any test file that is specific to a protocol should be prefixed with that protocol (i.e. connect_idempotency.yaml)
  • If a test file contains tests for multiple types of streams, the test name should be prefixed with the stream type. i.e. {stream type}/{optional description}
    • Note that in the case of bidi, the convention should be {stream type}/{[full | half] duplex}/{optional description}

This allows a lot of flexibility over ignoring tests in known_failing files, as well as targeting specific types of tests from the command line (i.e. server-stream/* to run all server stream tests).

@smaye81 smaye81 marked this pull request as ready for review February 10, 2024 14:25
Copy link
Member

@jhump jhump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions to further simplify: I don't think it's necessary to state the stream type for every test case since, for many tests, the stream type is not relevant or is implied by the test suite (for example, Connect GET can only ever work with unary). Other than that LGTM.

@smaye81 smaye81 merged commit 8fa47b2 into main Feb 13, 2024
@smaye81 smaye81 deleted the sayers/renaming branch February 13, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants