Skip to content

Commit ffccd88

Browse files
author
Sylvain Garcia
committed
add test prefix
1 parent e6a0fd1 commit ffccd88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ foreach(test ${tests})
5151
get_filename_component(test_name ${test} NAME_WE)
5252
add_executable(${test_name} ${test})
5353
target_link_libraries(${test_name} PRIVATE tests-main)
54-
doctest_discover_tests(${test_name} PROPERTIES TIMEOUT 30)
54+
string(REPLACE "_" " " test_prefix ${test_name})
55+
doctest_discover_tests(${test_name} TEST_PREFIX ${test_prefix}- PROPERTIES TIMEOUT 30)
5556
endforeach()

0 commit comments

Comments
 (0)