Windows UWP test support

Tom's Avatar

Tom

03 Sep, 2015 07:00 AM

Are "Unit Test App (Universal Windows)" projects supported? I have one in my solution, but the tests are not recognized during the build.

https://github.com/tomkuijsten/restup

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Sep, 2015 03:27 PM

    Feodor Fitsner's Avatar

    They are not yet supported by auto-discovery, but I've added a new issue: https://github.com/appveyor/ci/issues/393

  2. 2 Posted by pascal on 01 Oct, 2015 08:17 PM

    pascal's Avatar

    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.

  3. Support Staff 3 Posted by Feodor Fitsner on 01 Oct, 2015 09:41 PM

    Feodor Fitsner's Avatar

    Discovering of UWP test assemblies is not supported yet.

    - Feodor

  4. 4 Posted by j.verdurmen on 26 Oct, 2015 08:09 PM

    j.verdurmen's Avatar

    Are there plans to support them?

  5. Support Staff 5 Posted by Feodor Fitsner on 26 Oct, 2015 08:20 PM

    Feodor Fitsner's Avatar

    Yes, there are plans though I can't give you ETA right now.

  6. 6 Posted by Oren Novotny on 24 Nov, 2015 01:51 PM

    Oren Novotny's Avatar

    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.

  7. Support Staff 7 Posted by Feodor Fitsner on 24 Nov, 2015 07:09 PM

    Feodor Fitsner's Avatar

    Do you have, by chance, sample UWP tests in some public repository?

  8. 8 Posted by Oren Novotny on 24 Nov, 2015 07:15 PM

    Oren Novotny's Avatar

    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. 9 Posted by allan.smith on 08 Mar, 2016 07:02 PM

    allan.smith's Avatar

    Any update on this?

  10. Support Staff 10 Posted by Feodor Fitsner on 08 Mar, 2016 07:08 PM

    Feodor Fitsner's Avatar

    Have you tried running them by providing your own command, without auto-discovery enabled?

  11. 11 Posted by Eric Rozell on 22 Apr, 2016 03:49 PM

    Eric Rozell's Avatar

    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

  12. Support Staff 12 Posted by Feodor Fitsner on 22 Apr, 2016 04:46 PM

    Feodor Fitsner's Avatar

    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. 13 Posted by allan.smith on 22 Apr, 2016 04:49 PM

    allan.smith's Avatar

    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. 14 Posted by Eric Rozell on 22 Apr, 2016 04:50 PM

    Eric Rozell's Avatar

    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

  15. Support Staff 15 Posted by Feodor Fitsner on 25 Apr, 2016 05:34 PM

    Feodor Fitsner's Avatar

    Hi Eric,

    Could you please drop me a link to AppVeyor project?

  16. 16 Posted by Eric Rozell on 25 Apr, 2016 05:59 PM

    Eric Rozell's Avatar
  17. 17 Posted by ephracis on 22 May, 2016 01:41 PM

    ephracis's Avatar

    Any progress on this one? I am also interested in running tests for my UWP apps.

  18. 18 Posted by j.verdurmen on 22 May, 2016 09:39 PM

    j.verdurmen's Avatar

    --

  19. Support Staff 19 Posted by Feodor Fitsner on 23 May, 2016 04:58 PM

    Feodor Fitsner's Avatar

    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.exe to 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. 20 Posted by j.verdurmen on 23 May, 2016 06:48 PM

    j.verdurmen's Avatar

    --

  21. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.

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