Skip to content

Commit

Permalink
feat(cmake/tests): ask doctest to auto-generate test labels
Browse files Browse the repository at this point in the history
For CTest statistics / grouping of similar tests.
Doctest uses the TEST_SUITE() name for CTest label or the
doctest::test_suite() decorator.
  • Loading branch information
leha-bot committed Sep 23, 2023
1 parent 2a260f2 commit 4573fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ include(doctest)
add_executable(lbstd_version_tests test.cpp)
target_link_libraries(lbstd_version_tests doctest::doctest lbstd_version)

doctest_discover_tests(lbstd_version_tests)
doctest_discover_tests(lbstd_version_tests ADD_LABELS ON)

0 comments on commit 4573fe8

Please sign in to comment.