Skip to content

Commit

Permalink
Use gtest_discover_tests
Browse files Browse the repository at this point in the history
This runs googletest cases in a finer-grained way, for more accurate
reporting and better parallelism.
  • Loading branch information
Infinoid committed Mar 22, 2021
1 parent a99ada0 commit ceeabe4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ else()
cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0057 NEW)
include(GoogleTest)
gtest_add_tests(TARGET taco-test)
if(${CMAKE_VERSION} VERSION_LESS "3.10.0")
gtest_add_tests(TARGET taco-test)
else()
gtest_discover_tests(taco-test NO_PRETTY_VALUES)
endif()
endif()

0 comments on commit ceeabe4

Please sign in to comment.