Closed ckendrick closed 1 week ago
Should the unit tests still work with Google Test as before? Is there a new way to run the tests now?
Yes, the tests should still function as before with Google test. This just adds a new method for running all tests by using the ctest
command in the build directory instead of each executable individually (see the changes in .github/workflows/run_tests/action.yml
for an example).
This registers unit tests in CMake so tests can be run with
ctest
. This also adds a build optionENABLE_TESTS
to control whether to build unit tests. Previously, tests were built if googletest was found.