tag:help.appveyor.com,2012-11-13:/discussions/suggestions/1019-make-appveyor-aware-of-nunit3-test-resultsAppVeyor: Discussion 2018-08-25T02:08:48Ztag:help.appveyor.com,2012-11-13:Comment/398155522016-05-06T17:43:29Z2016-05-06T17:43:29ZMake AppVeyor aware of NUnit3 test results<div><p>Hi Justin,</p>
<p>NUnit 3 doesn't have built-in integration with AppVeyor (you can
submit an issue on <a href="https://github.com/nunit/nunit/issues">NUnit project page</a> and
ask for the integration).</p>
<p>However, current integration is made by mean of custom
logger.</p>
<p>You can use this PS script to install logger into your NUnit3
folder:</p>
<pre>
<code>$nunitPath = "$env:SYSTEMDRIVE\Tools\NUnit3"
$zipPath = "$($env:USERPROFILE)\Appveyor.NUnit3ResultWriter.zip"
(New-Object Net.WebClient).DownloadFile('http://www.appveyor.com/downloads/Appveyor.NUnit3ResultWriter.zip', $zipPath)
7z x $zipPath -y -o"$nunitPath\bin\addins" | Out-Null
Move-Item "$nunitPath\bin\addins\appveyor.addins" "$nunitPath\bin\appveyor.addins"</code>
</pre>
<p>Change first line to point to your NUnit location.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/398155522016-05-06T18:18:13Z2016-05-06T18:18:14ZMake AppVeyor aware of NUnit3 test results<div><p>Awesome. Thanks for the response. For those interested, I
downloaded the ZIP:</p>
<p><a href="http://www.appveyor.com/downloads/Appveyor.NUnit3ResultWriter.zip">
http://www.appveyor.com/downloads/Appveyor.NUnit3ResultWriter.zip</a></p>
<p>and dropped the files in NUnit.ConsoleRunner/tools. I changed
nunit.appveyor.addins to point to Appveyor.NUnit3ResultWriter.dll
instead of addins\Appveyor.NUnit3ResultWriter.dll.</p>
<p>Then I am able to do<br>
nunit3-console.exe MyApp.Tests.Dll --result="TestResult.xml"
--result="TestResultAppVeyor.xml;format=AppVeyor"}</p>
<p>This gives the standard NUnit3 results and also the AppVeyor
formatted results.</p>
<p>When run locally, it simply says<br>
"Sending test results to AppVeyor...Skipped - APPVEYOR_URL
environment variable was not found."</p></div>Justin Starktag:help.appveyor.com,2012-11-13:Comment/398155522016-09-21T11:33:09Z2016-09-21T11:33:11ZMake AppVeyor aware of NUnit3 test results<div><p>The solution with Appveyor.NUnit3ResultWriter addin works very
well, however it requires adding dlls to the source control, so I
would like to ask if you could make a nuget package for
Appveyor.NUnit3ResultWriter and upload it to nuget.org please?</p></div>Wojciech Kotlarskitag:help.appveyor.com,2012-11-13:Comment/398155522016-09-21T17:49:07Z2016-09-21T17:49:07ZMake AppVeyor aware of NUnit3 test results<div><p>Currently, real-time logging plugin is coming with
<code>nunit3-console</code> available on build workers. No need to
download it anymore.</p></div>Feodor Fitsner