tag:help.appveyor.com,2012-11-13:/discussions/questions/1631-windows-uwp-test-supportAppVeyor: Discussion 2018-10-19T08:17:26Ztag:help.appveyor.com,2012-11-13:Comment/378328192015-09-03T15:27:56Z2015-09-03T15:27:56ZWindows UWP test support<div><p>They are not yet supported by auto-discovery, but I've added a
new issue: <a href="https://github.com/appveyor/ci/issues/393">https://github.com/appveyor/ci/issues/393</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192015-10-01T20:17:34Z2015-10-01T20:17:34ZWindows UWP test support<div><p>Hi,</p>
<p>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.<br>
Is there something special to do?</p>
<p>Thanks.</p></div>pascaltag:help.appveyor.com,2012-11-13:Comment/378328192015-10-01T21:41:54Z2015-10-01T21:41:54ZWindows UWP test support<div><p>Discovering of UWP test assemblies is not supported yet.</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192015-10-26T20:09:55Z2016-05-23T21:08:50ZWindows UWP test support<div><p>Are there plans to support them?</p></div>j.verdurmentag:help.appveyor.com,2012-11-13:Comment/378328192015-10-26T20:20:37Z2015-10-26T20:20:37ZWindows UWP test support<div><p>Yes, there are plans though I can't give you ETA right now.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192015-11-24T13:51:41Z2015-11-24T13:51:43ZWindows UWP test support<div><p>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.</p>
<p>There might need to be a parameter to specify custom test
adapters, not really sure.</p></div>Oren Novotnytag:help.appveyor.com,2012-11-13:Comment/378328192015-11-24T19:09:30Z2015-11-24T19:09:30ZWindows UWP test support<div><p>Do you have, by chance, sample UWP tests in some public
repository?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192015-11-24T19:15:04Z2015-11-24T19:15:05ZWindows UWP test support<div><p>Indeed we do: <a href="https://github.com/xunit/xunit.integration">https://github.com/xunit/xunit.integration</a></p>
<p>Look at all of the non Devices.* projects for the full suite.
Some of them include NUnit as well.</p>
<p>There's the v2x_UWP one. There's also v2x_WPA81 that runs on the
phone.</p></div>Oren Novotnytag:help.appveyor.com,2012-11-13:Comment/378328192016-03-08T19:02:29Z2016-03-08T19:02:29ZWindows UWP test support<div><p>Any update on this?</p></div>allan.smithtag:help.appveyor.com,2012-11-13:Comment/378328192016-03-08T19:08:22Z2016-03-08T19:08:22ZWindows UWP test support<div><p>Have you tried running them by providing your own command,
without auto-discovery enabled?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192016-04-22T15:49:47Z2016-04-22T15:49:48ZWindows UWP test support<div><p>Hi Feodor,</p>
<p>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?</p>
<p>Cheers,<br>
Eric</p></div>Eric Rozelltag:help.appveyor.com,2012-11-13:Comment/378328192016-04-22T16:46:02Z2016-04-22T16:46:02ZWindows UWP test support<div><p>Hi Eric,</p>
<p>Could you tell me the location of test project in your project
please: <a href="https://github.com/ReactWindows/react-native">https://github.com/ReactWindows/react-native</a>
I might use it as an example.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192016-04-22T16:49:31Z2016-04-22T16:49:31ZWindows UWP test support<div><p>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.</p></div>allan.smithtag:help.appveyor.com,2012-11-13:Comment/378328192016-04-22T16:50:08Z2016-04-22T16:50:09ZWindows UWP test support<div><p>Yeah sure! Our default branch is ReactWindows (rather than
master), and the test project is:</p>
<p><a href="https://github.com/ReactWindows/react-native/blob/ReactWindows/ReactWindows/ReactNative.Tests/ReactNative.Tests.csproj">
https://github.com/ReactWindows/react-native/blob/ReactWindows/Reac...</a></p>
<p>Or, relatively:</p>
<p>./ReactWindows/ReactNative.Tests/ReactNative.Tests.csproj</p></div>Eric Rozelltag:help.appveyor.com,2012-11-13:Comment/378328192016-04-25T17:34:53Z2016-04-25T17:34:53ZWindows UWP test support<div><p>Hi Eric,</p>
<p>Could you please drop me a link to AppVeyor project?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192016-04-25T17:59:46Z2016-04-25T17:59:47ZWindows UWP test support<div><p>Hi Feodor,</p>
<p>Here it is: <a href="https://ci.appveyor.com/project/rozele/react-native">https://ci.appveyor.com/project/rozele/react-native</a></p></div>Eric Rozelltag:help.appveyor.com,2012-11-13:Comment/378328192016-05-22T13:41:08Z2016-05-22T13:41:08ZWindows UWP test support<div><p>Any progress on this one? I am also interested in running tests
for my UWP apps.</p></div>ephracistag:help.appveyor.com,2012-11-13:Comment/378328192016-05-22T21:39:18Z2016-05-23T21:09:15ZWindows UWP test support<div><h2><a class="anchor" name="" href="#"></a></h2></div>j.verdurmentag:help.appveyor.com,2012-11-13:Comment/378328192016-05-23T16:58:20Z2016-05-23T16:58:20ZWindows UWP test support<div><p>Look at this test project: <a href="https://ci.appveyor.com/project/FeodorFitsner/react-native/build/1.0.15">
https://ci.appveyor.com/project/FeodorFitsner/react-native/build/1....</a></p>
<p>I must say it went pretty far - I was able to fix
<code>DeveloperLicenseAcquirer.exe</code> to work with the latest
"Sign in" form and acquire/install Windows developer license.</p>
<p>Adding app package cert to CA also worked.</p>
<p>But it looks like the problem is that these tests should run on
Windows 10 only.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/378328192016-05-23T18:48:54Z2016-05-23T21:09:24ZWindows UWP test support<div><h2><a class="anchor" name="" href="#"></a></h2></div>j.verdurmen