Running UWP Unit Test App
I have a UWP application with a Universal Windows "Unit Test App". Under AppVeyor, the solution builds, but test discovery fails to find or run the tests. I have left the default configuration for AppVeyor tests: "Test assemblies=automatically discovered", "Test categories=all categories", etc.
Is it possible to use an Universal Windows Unit test App with AppVeyor? If so, how do I direct the test runner to execute the tests?
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
1 Posted by jnapoli on 05 Jun, 2017 02:35 PM
Microsoft has some documentation for setting up continuous integration for UWP apps. It mentions AppVeyor, but I can't see how to apply the instructions to AppVeyor's setup.
https://docs.microsoft.com/en-us/windows/uwp/packaging/auto-build-package-uwp-apps
2 Posted by Ilya Finkelshte... on 05 Jun, 2017 03:38 PM
Hi Joshua,
As you might notice in this article, Run unit tests feature available only on Custom Agent, which is agent you install on your own build machine. This is because UWP unit tests can be executed (at least for now) only on Windows 10, while hosted solutions are server based environment.
We have feature similar to Custom Agent, called Custom build environments. With it you can run on builds on local machine, or Hyper-V VMs, or Azure, or Google Cloud Engine or AWS, while AppVeyor provides UI and orchestration.
You may be interested in the following options for you to run your instances of Windows 10:
Note however that this feature is available for Premium plan customers only. You do not have to upgrade to try, but if you decide to use it after trial. you will be needed to upgrade to the Premium plan. Please let us know if you want to try this feature.
Ilya.
3 Posted by jnapoli on 05 Jun, 2017 04:20 PM
OK, thank you. Do you have any instructions or examples for setting up a UWP project with a Windows 10 AppVeyor build agent, aside from the Microsoft article?
4 Posted by Ilya Finkelshte... on 05 Jun, 2017 04:45 PM
No we do not have instructions specific to UWP unit testing. I believe that this should be probably test script, based on what you do to run UWP unit tests locally from command line, followed by uploading test results. I don't think this should be too complicated as long as you get AppVeyor build agent running on Windows 10 local machine (or Hyper-V or Azure VM).
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.