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

Add DISCOVERY_MODE to doctest_discover_tests #831

Open
bilderbuchi opened this issue Nov 22, 2023 · 0 comments
Open

Add DISCOVERY_MODE to doctest_discover_tests #831

bilderbuchi opened this issue Nov 22, 2023 · 0 comments

Comments

@bilderbuchi
Copy link

bilderbuchi commented Nov 22, 2023

Since CMake 3.18 gtest_discover_tests has supported a DISCOVERY_MODE option, which when set to PRE_TEST allows for the test discovery to be delayed until just prior to test execution. This is useful when cross-compiling, since the build machine may be unable to run the test executable.

Adding DISCOVERY_MODE to doctest_discover_tests would be equally useful. ❤️

Upstream docs at CMake: https://cmake.org/cmake/help/latest/module/GoogleTest.html#command:gtest_discover_tests
Equivalent issue at Catch2, which is closely related to doctest afaik: catchorg/Catch2#2493
Relevant Catch2 PR implementing that feature: catchorg/Catch2#2670

Also mentioned in here: #645 (comment)
cc @curldivergence

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