I've written a native unit test dll that uses VS2012's CppUnitTestFramework. I can run these tests in the VS2012's IDE in the Test Explorer window.
But, I'd like to also run these tests from our MsBuild script. I guess I need to launch some test runner exe with appropriate command line, but am struggling to find information on this.
Can you help point me in the right direction. Thanks.
The Visual Studio Test Runner is a simple command line tool which needs to be called in order to find and execute the tests. Creating a small msbuild task or using the standard exec
task would be enough to invoke the tests after the build.
As long as the test runner is installed properly, it should just pick up these tests and execute them.
See this blog post explaining all the command line intricacies of the new vstest.console.exe
.