1
votes

I'm trying to set up continuous integration testing for a Windows Store (8.1) app on Visual Studio Team Services (formerly Visual Studio Online).

Setting up build was fairly easy, but I have not been able to get it to run my unit tests on a Hosted Agent. So far I have:

  • Added /t:Publish to the build to produce the test runner .appx
  • Created a Powershell script to install the appropriate certificates onto the agent
  • Modified the test search path to find the .appx

Now, I'm getting errors about installing a developer license:

Error: Could not start test run for unit tests for Windows Store app: No valid developer license found for running unit tests for Windows Store apps. Please install/renew your developer license..

It does not appear to be possible to add a developer license strictly from Powershell or Command Prompt, so is there some other way of running the tests on a Hosted Agent?

1

1 Answers

0
votes

Assuming you are using vNext build and Universal Windows Platform template by following this article.

As the developer license is deprecated in the Windows 10 operating system, Universal Windows Platform template doesn't require developer license. But if the computer that hosts the build agent will be used to perform unit tests for windows 8.x, developer license must be installed on the computer.

So, there is no way to run tests for Windows 8.1 on Hosted Agent. You need to deploy a Windows build agent or set up an on-premises build controller + build agent to test Windows 8.1 application.