There was an error while loading. Please reload this page.
1 parent 191fa38 commit a15f718Copy full SHA for a15f718
1 file changed
extras/CatchAddTests.cmake
@@ -199,9 +199,13 @@ function(catch_discover_tests_impl)
199
math(EXPR num_tests "${num_tests} - 1")
200
201
foreach(idx RANGE ${num_tests})
202
- string(JSON single_test GET ${test_listing} ${idx})
203
- string(JSON test_tags GET "${single_test}" "tags")
204
- string(JSON plain_name GET "${single_test}" "name")
+ if(add_tags)
+ string(JSON single_test GET "${test_listing}" ${idx})
+ string(JSON test_tags GET "${single_test}" "tags")
205
+ string(JSON plain_name GET "${single_test}" "name")
206
+ else()
207
+ string(JSON plain_name GET "${test_listing}" ${idx} "name")
208
+ endif()
209
210
# Escape characters in test case names that would be parsed by Catch2
211
# Note that the \ escaping must happen FIRST! Do not change the order.
0 commit comments