Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-07-24 12:33:58 +0200
committerMartin Hořeňovský2026-07-26 15:23:39 +0200
commit2b971368dd9ba954604f45e748fb2d46493bb7d7 (patch)
treeb2db0cc9d29bbdd057f0c03eb97b8e8f8f857071
parentf5db82a5c47cc92ec59e6216d0b63aa866b2885d (diff)
downloadcatch3-2b971368dd9ba954604f45e748fb2d46493bb7d7.tar.gz
Determinize the test registration order in catch_discover_tests
-rw-r--r--extras/CatchAddTests.cmake1
1 files changed, 1 insertions, 0 deletions
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}"