Upon generating a Vistual Studio project from a CMake build file, CMake generates a solution with a sub-project called RUN_TESTS.vcproj that runs all unit tests as a post build action.
How can you invoke the RUN_TESTS from the command prompt using msbuild.exe?
Running msbuild RUN_TESTS.vcproj from the build directory does not work.
Under UNIX you would do a simple make test for Makefiles generated by CMake.
There seems to be no way to run the tests through MSBuild.exe. You can invoke the tests with the executable ctest.exe which is part of the CMake installation:
This will run the tests associated with the project’s “Debug” configuration.