-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimal emulation of Catch2 test listing
This is the minimal emulation of the list-tests command line option that CLion needs to discover and list tests. CLion calls the test binary with the command line `--list-tests --order lex ~[.]` before running tests. It doesn't seem to mind that the tests aren't actually ordered, but it does break it's parsing if: - there is no leading "Matching test cases:" - tags aren't listed with an indent - tests are listed without tags
- Loading branch information
1 parent
86d18cb
commit ade8932
Showing
3 changed files
with
66 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 55 additions & 42 deletions
97
tests/approval_tests/data/expected/reporter_console_list_tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,55 @@ | ||
test pass | ||
test fail | ||
test mayfail good pass | ||
test mayfail bad pass | ||
test shouldfail good fail | ||
test shouldfail bad pass | ||
test no tags pass | ||
test no tags fail | ||
typed test no tags pass <int> | ||
typed test no tags pass <float> | ||
typed test no tags fail <int> | ||
typed test no tags fail <float> | ||
typed test with tags pass <int> | ||
typed test with tags pass <float> | ||
typed test with tags fail <int> | ||
typed test with tags fail <float> | ||
test fixture pass | ||
test fixture fail | ||
test SUCCEED pass | ||
test FAIL fail | ||
test expression pass | ||
test expression fail | ||
test long expression pass | ||
test long expression fail | ||
test too long expression pass | ||
test too long expression fail | ||
test too long message pass | ||
test too long message fail | ||
test NOTHROW pass | ||
test NOTHROW fail | ||
test THROW pass | ||
test THROW fail | ||
test unexpected throw fail | ||
test unexpected throw in section fail | ||
test unexpected throw in check fail | ||
test unexpected throw in check & section fail | ||
test SKIP | ||
test INFO | ||
test multiple INFO | ||
test SECTION | ||
test multiple SECTION | ||
test SECTION & INFO | ||
Matching test cases: | ||
test pass | ||
[tag2][tag1] | ||
test fail | ||
[tag2][tag1] | ||
test mayfail good pass | ||
[tag2][tag1][!mayfail] | ||
test mayfail bad pass | ||
[tag2][tag1][!mayfail] | ||
test shouldfail good fail | ||
[tag2][tag1][!shouldfail] | ||
test shouldfail bad pass | ||
[tag2][tag1][!shouldfail] | ||
test no tags pass | ||
test no tags fail | ||
typed test no tags pass <int> | ||
typed test no tags pass <float> | ||
typed test no tags fail <int> | ||
typed test no tags fail <float> | ||
typed test with tags pass <int> | ||
[tag1] | ||
typed test with tags pass <float> | ||
[tag1] | ||
typed test with tags fail <int> | ||
[tag1] | ||
typed test with tags fail <float> | ||
[tag1] | ||
test fixture pass | ||
[tag with space] | ||
test fixture fail | ||
[tag with space] | ||
test SUCCEED pass | ||
test FAIL fail | ||
test expression pass | ||
test expression fail | ||
test long expression pass | ||
test long expression fail | ||
test too long expression pass | ||
test too long expression fail | ||
test too long message pass | ||
test too long message fail | ||
test NOTHROW pass | ||
test NOTHROW fail | ||
test THROW pass | ||
test THROW fail | ||
test unexpected throw fail | ||
test unexpected throw in section fail | ||
test unexpected throw in check fail | ||
test unexpected throw in check & section fail | ||
test SKIP | ||
test INFO | ||
test multiple INFO | ||
test SECTION | ||
test multiple SECTION | ||
test SECTION & INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters