tag:help.appveyor.com,2012-11-13:/discussions/problems/395-no-tests-discoveredAppVeyor: Discussion 2018-10-19T08:16:35Ztag:help.appveyor.com,2012-11-13:Comment/333026292014-06-06T16:33:07Z2014-06-06T16:33:07ZNo tests discovered<div><p>Hi Brian,</p>
<p>I'm looking into build log... are
<code>Tests.Windows\bin\x86\Debug\Tests.Windows.dll</code> and
<code>Tests.WindowsPhone\bin\x86\Debug\Tests.WindowsPhone.dll</code>
the two assemblies that must be automatically discovered?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292014-06-06T17:57:56Z2014-06-06T17:57:57ZNo tests discovered<div><p>Yes, those are the test projects. Thanks!</p>
<hr></div>Brian Dunningtontag:help.appveyor.com,2012-11-13:Comment/333026292014-06-09T19:53:38Z2014-06-09T19:53:38ZNo tests discovered<div><p>Hi Brian,</p>
<p>Sorry for the silly question, but what must be installed to make
these guys resolve in proj file?</p>
<pre>
<code><ItemGroup>
<!--A reference to the entire .Net Framework and Windows SDK are automatically included-->
<SDKReference Include="MSTestFramework, Version=12.0" />
<SDKReference Include="TestPlatform, Version=12.0" />
</ItemGroup></code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292014-06-09T20:02:21Z2014-06-09T20:02:21ZNo tests discovered<div><p>Found it: <a href=
"http://www.interact-sw.co.uk/iangblog/2014/04/23/wp81-msb3774">http://www.interact-sw.co.uk/iangblog/2014/04/23/wp81-msb3774</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292014-06-09T23:47:40Z2014-06-09T23:47:40ZNo tests discovered<div><p>Well, it appears it's not just discovering Store/Phone
assemblies with unit tests. The tests must be run as
<code>.appx</code> packages.</p>
<p>This is the guide: <a href=
"http://blogs.msdn.com/b/vikramagrawal/archive/2012/05/06/running-unit-tests-for-windows-metro-style-apps-from-command-line.aspx">
http://blogs.msdn.com/b/vikramagrawal/archive/2012/05/06/running-un...</a></p>
<p>Have you tried following that guide to see if it's possible at
AppVeyor? Based on your results we might add automation for
Store/Phone tests.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292014-06-10T00:01:01Z2014-06-10T00:01:02ZNo tests discovered<div><p>I have verified those steps and am able to run my store (appx)
tests via the command line (in Jenkins, using vstest.console.exe).
I did have to get a developer license onto my build machine as well
as install the app signing certificate in order to get it to work.
I was just hoping AppVeyor could make it all easier since the rest
of your service is so easy to setup and use, and Windows Store and
Phone apps are becoming a bigger and bigger part of our development
process.</p>
<hr></div>Brian Dunningtontag:help.appveyor.com,2012-11-13:Comment/333026292014-06-10T19:40:21Z2014-06-10T19:40:21ZNo tests discovered<div><p>Yeah, the service is new and not all cases are covered. But we'd
like to start working on appx testing support on AppVeyor,
hopefully with your help.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292014-06-13T20:09:35Z2014-06-13T20:09:37ZNo tests discovered<div><p>I would be happy to help out. Testing appx packages brings a
bunch of hurdles (must run in interactive mode, need developer
license, need to install app signing cert, etc) so it would be
great if AppVeyor could handle all of that seamlessly.</p></div>brian dunningtontag:help.appveyor.com,2012-11-13:Comment/333026292014-06-13T20:17:54Z2014-06-13T20:17:54ZNo tests discovered<div><p>Yeah, I've started investigating that. Looks like developer
license could not be deployed from command line... There is a
cmdlet but it brings up a dialog window asking to enter Live
ID.</p>
<p>Maybe there is a place in the registry or local ceritificate
store where we can just push dev certificate?..</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/333026292015-03-20T11:21:08Z2015-03-20T11:21:09ZNo tests discovered<div><p>I wasn't sure if this issue was already solved so created it to
<a href="https://github.com/appveyor/ci/issues/201">https://github.com/appveyor/ci/issues/201</a>
for easier tracking. If there is already a solution available,
please share and I'll close the referenced issue.</p></div>Ville Rantalatag:help.appveyor.com,2012-11-13:Comment/333026292015-08-24T20:05:52Z2015-08-24T20:05:52ZNo tests discovered<div><p>What was the final resolution on this? I read through the entire
GitHub issue tracker thread but didnt see if it ever fully worked.
I just tried rebuilding my original project that started this
thread (almost a year ago) and got the same behavior: projects
build successfully but no tests are discovered.</p></div>briandunnington