catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Determinize the test registration order in catch_discover_tests
- Commit
2b971368dd9ba954604f45e748fb2d46493bb7d7- Author
- Martin Hořeňovský ·
- Parents
f5db82a5c47c
Changes
extras/CatchAddTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index ea3fec59..5c67c874 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -114,6 +114,7 @@ function(catch_discover_tests_impl) --list-tests --reporter json --out "${listing_output_path}" + --order lex # Make sure the output order, and thus test registration order, is consistent across runs. OUTPUT_VARIABLE listing_output RESULT_VARIABLE result WORKING_DIRECTORY "${_TEST_WORKING_DIR}"