catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix catch_discover_tests PRE_TEST failure with zero discoverable tests
- Commit
f4e83daa184595cee80a8d37f145cb5d6b9b21ba- Author
- Sung, Po Han ·
- Committer
- Martin Hořeňovský
- Parents
572f96b8febe
Changes
extras/CatchAddTests.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index 90fbd5e3..4c27f479 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -146,6 +146,7 @@ function(catch_discover_tests_impl) # Exit early if no tests are detected if(num_tests STREQUAL "0") + file(WRITE "${_CTEST_FILE}" "") return() endif()