tag:help.appveyor.com,2012-11-13:/discussions/questions/172-rsdk-functional-tests-error-running-nunit-testsAppVeyor: Discussion 2018-10-19T08:16:28Ztag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T03:20:04Z2014-01-20T06:43:02ZR#SDK functional tests. Error running NUnit tests.<div><p>Hello.</p>
<p>I have a problem with launching tests on my project
"mockmetrics". There is one assembly with functional tests for
resharper plug-in. Resharper SDK creates an in-memory instance of
ReSharper, a solution and a project for this tests, so it takes a
lot of time. Currently test assembly contains only one test. I try
to perform it on AppVeyor, and it takes 40 minutes(build 0.0.1.14).
And then message appears: "Error running NUnit tests.". What does
it meаn? Is there a problem or just test has failed?</p>
<p>Kozhevnikov Dmitry.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T03:25:08Z2013-10-30T03:25:08ZR#SDK functional tests. Error running NUnit tests.<div><p>Hi Dmitry,</p>
<p>How long does this test take on your dev machine?<br>
Have you tried running NUnit console using script (to see output)
like described in this article? <a href=
"http://www.appveyor.com/docs/custom-build-scripts">http://www.appveyor.com/docs/custom-build-scripts</a></p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T03:46:09Z2014-01-20T06:43:03ZR#SDK functional tests. Error running NUnit tests.<div><p>It takes 40-50 seconds on my machine.</p>
<p>I tried running build script: "nunit-console.exe
/result:%OutFolder%\myresults.xml MockMetrics.Tests.dll", and got
an error: "The given path's format is not supported." What is wrong
with this script?</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T03:50:30Z2013-10-30T03:50:30ZR#SDK functional tests. Error running NUnit tests.<div><p>Try <code>nunit-console.exe /result:%NUnitResults%\myresults.xml
MockMetrics.Tests.dll</code> or even <code>nunit-console.exe
MockMetrics.Tests.dll</code> just to see if it goes through.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T04:01:33Z2014-01-20T06:43:03ZR#SDK functional tests. Error running NUnit tests.<div><p>Got "Build script file could not be found: nunit-console.exe
MockMetrics.Tests.dll".</p>
<p>It seems, that I am doing something wrong =). I choose Script in
"Settings\Build\Buil Scenario" and type "nunit-console.exe
MockMetrics.Tests.dll" into "PowerShell or batch script file"
textbox. And nothing more.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T04:15:23Z2013-10-30T04:15:23ZR#SDK functional tests. Error running NUnit tests.<div><p>Oh, <code>PowerShell or batch script file</code> should be a
<strong>path</strong> to a script, not a command itself :) for
example <code>scripts\run-tests.cmd</code>.</p>
<p>...I will think how to make this part of UI more clear.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T04:45:02Z2014-01-20T06:43:03ZR#SDK functional tests. Error running NUnit tests.<div><p>My mistake.<br>
Where in solution cmd file must be, to maked available to
appveyor?</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T05:14:33Z2013-10-30T05:14:33ZR#SDK functional tests. Error running NUnit tests.<div><p>Any location within repository. Path to a script is the path
relative to repository root. For example, if there is
<code>scripts</code> folder in the root of repo with all build
scripts then path should be <code>scripts\myscript.cmd</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T07:25:29Z2014-01-20T06:43:04ZR#SDK functional tests. Error running NUnit tests.<div><p>Ок. Cmd file is found. Build log contains error:<br>
Could not find file
'd:\Builds\rnkf7tg7ps\src\MockMetrics.Tests.dll'.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-30T13:55:27Z2013-10-30T13:55:27ZR#SDK functional tests. Error running NUnit tests.<div><p>When build script runs the working folder is <code>src</code>,
so you have to provide full path to DLL, something like
<code>project\bin\debug\myassembly.dll</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T01:39:38Z2014-01-20T06:43:04ZR#SDK functional tests. Error running NUnit tests.<div><p>Ok.</p>
<p>Looks like, everything works fine. Build takes 2 minutes 51
second. Nunit console reports, exactly as expected, that:<br>
Tests run: 2, Errors: 0, Failures: 0, Inconclusive: 0, Time:
123.3104733 seconds<br>
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T01:54:36Z2013-10-31T01:54:36ZR#SDK functional tests. Error running NUnit tests.<div><p>Great to know! Then where was the problem? :)</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T02:23:50Z2014-01-20T06:43:04ZR#SDK functional tests. Error running NUnit tests.<div><p>When AppVeyor seek and perform tests itself, as I post
yesterday, it takes over 40 minutes, and then failed. I choose
build scenario "Visual Studio Solution", and then test type "Run
Tests". I expect, that after succesfull build AppVeyor takes
assembly, that has reference to nunit-framework, and run all tests.
May be I am doing something wrong again.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T04:11:22Z2013-10-31T04:11:22ZR#SDK functional tests. Error running NUnit tests.<div><p>Well, maybe AppVeyor is picking up a wrong assembly.</p>
<p>Could you please try specifying this particular assembly in
"include" list on "Tests" tab?<br>
For VS Solution scenario the path would be
<code><projectname>\assembly.dll</code>.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T05:32:47Z2014-01-20T06:43:05ZR#SDK functional tests. Error running NUnit tests.<div><p>Unfortunately, tests were not found. I have tried over 15
configurations, besides what you suggest.=( Every time the
run-tests-phase takes 1-2 minutes, but tests were not run or even
found.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-10-31T16:50:57Z2013-10-31T16:51:46ZR#SDK functional tests. Error running NUnit tests.<div><p>I will take a look what's wrong. Might be a bug.</p>
<p>Is it a public project?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582013-11-01T00:24:05Z2014-01-20T06:43:05ZR#SDK functional tests. Error running NUnit tests.<div><p>Yes, it is public.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-11-12T06:47:05Z2014-01-20T06:43:05ZR#SDK functional tests. Error running NUnit tests.<div><p>Hello.</p>
<p>Are there any optimistical news? =)</p>
<p>Kozhevnikov Dmitry.</p></div>d.o.kozhevnikovtag:help.appveyor.com,2012-11-13:Comment/296948582013-11-12T14:50:13Z2013-11-12T14:50:13ZR#SDK functional tests. Error running NUnit tests.<div><p>I haven't looked into it yet - I mean why Appveyor could not
discover NUnit tests in that assembly. But I filed a bug to resolve
later.</p>
<p>Working hard on the next release which will have more
transparent progress reporting and log - easier to troubleshoot any
issues.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/296948582014-04-22T12:11:53Z2014-04-22T12:11:58ZR#SDK functional tests. Error running NUnit tests.<div><p>Hi, i extracted test case from selenium as webdriver/nunit/c#
and running from visual studio integrated with nunit..... when i
run those script from NUnit it shows error on a line whereas same
script which i recorded using selenium when run from selenium runs
correctly without any error.</p>
<p>what should i suppose to do????</p>
<p>driver.FindElement(By.LinkText("Skill")).Click(); error is on
this line</p></div>Sumit Pandey