I installed the Visual Studio 2012 Update 2 and successfully run a set of Windows Phone tests from the command line
I then tried to do this from Jenkins (using the VSTest Plug In) and received the following message which apparently has something to do with sandboxing..
Starting test execution, please wait... Error: Could not start test run for unit tests for Windows Phone app: Unit tests for Windows Store apps cannot be run from a service or non interactive process. Please run unit tests from an interactive process..
Any ideas...
there's this commandline utility vstest.console.exe that's also able to run 3rdparty unit tests, if it has the right adapter(s). You have to use the /UseVsixExtensions option to vstest.console.exe. Additonally, to enable code coverage analysis I supply 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 produces a a file with the suffix .coverage beneath the directory 'TestResults'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With