Windows UWP test support
Are "Unit Test App (Universal Windows)" projects supported? I have one in my solution, but the tests are not recognized during the build.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 03 Sep, 2015 03:27 PM
They are not yet supported by auto-discovery, but I've added a new issue: https://github.com/appveyor/ci/issues/393
2 Posted by pascal on 01 Oct, 2015 08:17 PM
Hi,
my UWP unit test assembly is not found. I've tried using x86 and x64, using default discovery and specifying '**\*Test.exe', but it is still not found.
Is there something special to do?
Thanks.
Support Staff 3 Posted by Feodor Fitsner on 01 Oct, 2015 09:41 PM
Discovering of UWP test assemblies is not supported yet.
- Feodor
4 Posted by j.verdurmen on 26 Oct, 2015 08:09 PM
Are there plans to support them?
Support Staff 5 Posted by Feodor Fitsner on 26 Oct, 2015 08:20 PM
Yes, there are plans though I can't give you ETA right now.
6 Posted by Oren Novotny on 24 Nov, 2015 01:51 PM
Will this be done through invoking the VSTest.exe mechanism? If so, please ensure this is tested with xUnit UWP test projects too. It should pick up the adapters there and this works with VSO CI builds long as the build agent is an interactive process.
There might need to be a parameter to specify custom test adapters, not really sure.
Support Staff 7 Posted by Feodor Fitsner on 24 Nov, 2015 07:09 PM
Do you have, by chance, sample UWP tests in some public repository?
8 Posted by Oren Novotny on 24 Nov, 2015 07:15 PM
Indeed we do: https://github.com/xunit/xunit.integration
Look at all of the non Devices.* projects for the full suite. Some of them include NUnit as well.
There's the v2x_UWP one. There's also v2x_WPA81 that runs on the phone.
9 Posted by allan.smith on 08 Mar, 2016 07:02 PM
Any update on this?
Support Staff 10 Posted by Feodor Fitsner on 08 Mar, 2016 07:08 PM
Have you tried running them by providing your own command, without auto-discovery enabled?
11 Posted by Eric Rozell on 22 Apr, 2016 03:49 PM
Hi Feodor,
I'm also blocked on this. I have a project where I build for multiple platforms and need to run the Universal Windows unit tests for each platform. If I had to write my own script to discover the tests, I would not know which platform the tests should be run for (because I've lost the context from the build). Do you have an ETA on when UWP unit test discovery will be enabled?
Cheers,
Eric
Support Staff 12 Posted by Feodor Fitsner on 22 Apr, 2016 04:46 PM
Hi Eric,
Could you tell me the location of test project in your project please: https://github.com/ReactWindows/react-native I might use it as an example.
13 Posted by allan.smith on 22 Apr, 2016 04:49 PM
I believe this is a problem that may not have a solution. The Windows Store unit test projects have a UI that loads, and that is not conducive to running in a build system. The feedback I received from UWP architects at Build conference was to move most of your business logic into a PCL and write unit tests in a non-uwp test project. Kinda sucks, but given the restrictions, makes sense.
14 Posted by Eric Rozell on 22 Apr, 2016 04:50 PM
Yeah sure! Our default branch is ReactWindows (rather than master), and the test project is:
https://github.com/ReactWindows/react-native/blob/ReactWindows/ReactWindows/ReactNative.Tests/ReactNative.Tests.csproj
Or, relatively:
./ReactWindows/ReactNative.Tests/ReactNative.Tests.csproj
Support Staff 15 Posted by Feodor Fitsner on 25 Apr, 2016 05:34 PM
Hi Eric,
Could you please drop me a link to AppVeyor project?
16 Posted by Eric Rozell on 25 Apr, 2016 05:59 PM
Hi Feodor,
Here it is: https://ci.appveyor.com/project/rozele/react-native
17 Posted by ephracis on 22 May, 2016 01:41 PM
Any progress on this one? I am also interested in running tests for my UWP apps.
18 Posted by j.verdurmen on 22 May, 2016 09:39 PM
--
Support Staff 19 Posted by Feodor Fitsner on 23 May, 2016 04:58 PM
Look at this test project: https://ci.appveyor.com/project/FeodorFitsner/react-native/build/1....
I must say it went pretty far - I was able to fix
DeveloperLicenseAcquirer.exeto work with the latest "Sign in" form and acquire/install Windows developer license.Adding app package cert to CA also worked.
But it looks like the problem is that these tests should run on Windows 10 only.
20 Posted by j.verdurmen on 23 May, 2016 06:48 PM
--
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.