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.

https://github.com/tomkuijsten/restup

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

  2. 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. Discovering of UWP test assemblies is not supported yet.

    - Feodor

  4. Are there plans to support them?

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

  6. 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. Do you have, by chance, sample UWP tests in some public repository?

  8. 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. Any update on this?

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

  11. 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. 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. 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. 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. Hi Eric,

    Could you please drop me a link to AppVeyor project?

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

  17. --

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

  19. --

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