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
Fix catch_discover_tests() - now should correctly find tests with commas | Related to #1327
- Commit
0144ae9ad2c6543fef50bba206f65edf947b55d1- Author
- Maciej Patro ·
- Committer
- Martin Hořeňovský
- Parents
e1307016f05d
Changes
contrib/CatchAddTests.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/CatchAddTests.cmake b/contrib/CatchAddTests.cmake index 07856130..2220ce3a 100644 --- a/contrib/CatchAddTests.cmake +++ b/contrib/CatchAddTests.cmake @@ -51,12 +51,14 @@ string(REPLACE "\n" ";" output "${output}") # Parse output foreach(line ${output}) set(test ${line}) + # use escape commas to handle properly test cases with commans inside the name + string(REPLACE "," "\\," test_name ${test}) # ...and add to script add_command(add_test "${prefix}${test}${suffix}" ${TEST_EXECUTOR} "${TEST_EXECUTABLE}" - "${test}" + "${test_name}" ${extra_args} ) add_command(set_tests_properties