Skip to content

Conversation

@smaye81
Copy link
Member

@smaye81 smaye81 commented Nov 29, 2023

This adds the ability to specify a test file via the command line. The given path must be a file in YAML format, otherwise an error is returned.

A scenario for usage is when debugging tests and isolating ones that are failing. The tests can be moved to their own file and also further isolated using the relevantXXX directives so the tests only run for those specified configs.

Example usage:

go run cmd/connectconformance/main.go --mode client .tmp/bin/referenceclient --test-file ./internal/app/connectconformance/testsuites/bidi.yaml

@smaye81
Copy link
Member Author

smaye81 commented Nov 29, 2023

@jhump put up this PR because this functionality was invaluable while trying to debug some of the failing timeout stuff. It's super helpful to be able to isolate tests without having to run the whole suite.

@smaye81 smaye81 requested a review from jhump November 29, 2023 16:17
@smaye81 smaye81 merged commit 0112fae into main Nov 29, 2023
@smaye81 smaye81 deleted the sayers/testfile branch November 29, 2023 19:55
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