Cannot start VSTest.Console.exe from Windows or non-interactive service for Windows Phone Project

I installed Visual Studio 2012 Update 2 and successfully ran the Windows Phone test suite from the command line

Then I tried to do this from Jenkins (using the VSTest Plug In) and received the following message, which apparently has something to do with the sandbox.

Launching a test run, please wait ... Error: Failed to run a test run for unit tests for a Windows Phone application: Unit tests for Windows Store applications cannot be run from a service or non-interactive process. Please run unit tests from the interactive process.

Any ideas ...

+5
source share
2 answers

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".

+1
source

I had the same problem and it was resolved by removing Jenkins from local services. This can be done by removing the Jenkins control panel from the "Uninstall a program" panel. Or follow these steps:

  • Launch command: sc delete jenkins
  • Remove Jenkins from HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services
  • Reboot the computer.
  • Jenkins : java -jar jenkins.war
0

All Articles