Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doctest_discover_tests ADD_LABELS not working #859

Open
hcw70 opened this issue Jun 21, 2024 · 0 comments
Open

doctest_discover_tests ADD_LABELS not working #859

hcw70 opened this issue Jun 21, 2024 · 0 comments

Comments

@hcw70
Copy link

hcw70 commented Jun 21, 2024

Description

When doing
doctest_discover_tests(${UNIT_TESTS_EXE} ADD_LABELS unittest)

i would expect that there are actually labels attached to ctest.
Howerver, in my build-dir it shows:

> ctest --print-labels
Test project ./build-x86
No Labels Exist

Investigating the generated ctest file:

> cat unittest_tests-b858cb2.cmake
add_test( [==[Matrix3x3::upperLeft()]==] ./build-x86/unittest [==[--test-case=Matrix3x3::upperLeft()]==])
set_tests_properties( [==[Matrix3x3::upperLeft()]==] PROPERTIES WORKING_DIRECTORY ./build-x86 LABELS)

(shortened the build folder in the examples)
... shows empty LABELS value for set_test_properties.

Extra information

  • doctest version: v2.4.11
  • Operating System: Ubuntu 24
  • cmake version 3.28.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant