there is this command-line utility vstest.console.exe, which can also run Unitparty tests if it has the appropriate adapter (s). You must use the / UseVsixExtensions option for vstest.console.exe. In addition, to enable code coverage analysis, I provide the / EnableCodeCoverage option.
"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
/UseVsixExtensions:true /EnableCodeCoverage "C:\Users\Arve\Documents\Visual Studio
2012\Projects\MyApp\MyApp.Tests\bin\Debug\MyApp.Tests.dll"
The above command creates a file with the suffix .coverage under the directory "TestResults".
source
share