Commit 7472295d95c241f2a4fbf6529c3048c81e3ab812
Committed by
Henry Schreiner
1 parent
8e87df2a
Adding filename to name
Showing
2 changed files
with
3 additions
and
1 deletions
CHANGELOG.md
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | * `CLI::RuntimeError` added, for easy exit with error codes [#45](https://github.com/CLIUtils/CLI11/pull/45) |
| 14 | 14 | * The clang-format script is now no longer "hidden" [#48](https://github.com/CLIUtils/CLI11/pull/48) |
| 15 | 15 | * The order is now preserved for subcommands (list and callbacks) [#49](https://github.com/CLIUtils/CLI11/pull/49) |
| 16 | -* Tests now run individually, utilizing CMake 3.10 additions if possible | |
| 16 | +* Tests now run individually, utilizing CMake 3.10 additions if possible [#50](https://github.com/CLIUtils/CLI11/pull/50) | |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | ## Version 1.2 | ... | ... |
cmake/AddGoogletest.cmake
| ... | ... | @@ -44,10 +44,12 @@ macro(add_gtest TESTNAME) |
| 44 | 44 | if(GOOGLE_TEST_INDIVIDUAL) |
| 45 | 45 | if(CMAKE_VERSION VERSION_LESS 3.10) |
| 46 | 46 | gtest_add_tests(TARGET ${TESTNAME} |
| 47 | + TEST_PREFIX "${TESTNAME}." | |
| 47 | 48 | TEST_LIST TmpTestList) |
| 48 | 49 | set_tests_properties(${TmpTestList} PROPERTIES FOLDER "Tests") |
| 49 | 50 | else() |
| 50 | 51 | gtest_discover_tests(${TESTNAME} |
| 52 | + TEST_PREFIX "${TESTNAME}." | |
| 51 | 53 | PROPERTIES FOLDER "Tests") |
| 52 | 54 | endif() |
| 53 | 55 | else() | ... | ... |