0

I am currently using NUnit in Visual Studio to execute my Selenium tests. What I want is some good reporting and I found ReportUnit.

What I cannot seem to figure out is where NUnit places the test result xml files on my machine. I am no tech-wiz so I am struggling to find out how to get ReportUnit working. I found the documentation here: http://relevantcodes.com/reportunit/

But cannot quite figure out how to get my test result files in a specific folder and then open them with ReportUnit.

Any help is appreciated.

Kind regards, Anand

Anand
  • 1,899
  • 1
  • 13
  • 23
  • ReportUnit was deprecated by extentreports-dotnet-cli just today. ReportUnit repo is also archived and it will no longer be possible to raise issues there. The project owner @anshooarora will be releasing both the sources and nuget package in a few days. Link: github.com/extent-framework/extentreports-dotnet-cli – foursyth Dec 26 '18 at 05:23

1 Answers1

2

Use the --out option of nunit3-console.exe to specify where the result file should go. e.g.

nunit3-console.exe MyTests.dll --out=C:/TestResult.xml

Chris
  • 5,882
  • 2
  • 32
  • 57
  • I read those commands, but I am also not really a pro with cmd. When I look in my explorer where nunit3-console.exe is located, I see quite a few results (some could be trash) When I go to one of these locations in cmd and use the --out option, I get the message: 'nunit3-console.exe' is not recognized as an internal or external command, operable program or batch file. – Anand Oct 13 '16 at 13:24
  • How are you running NUnit at the moment, are you using the NUnit 3 VS adapter? That doesn't produce the xml file that ReportUnit requires - you'll need to download and use the nunit3-console instead. – Chris Oct 13 '16 at 13:37
  • Ah that could explain some stuff yes. I am using the NUnit 3 VS adapter. Is ReportUnit not useable in combination with the adapter? – Anand Oct 13 '16 at 13:42
  • ReportUnit requires the NUnit xml file, which the VS adapter doesn't write out. Download the nunit3-console from the link below, the second link is docs on how to use. https://github.com/nunit/nunit-console/releases https://github.com/nunit/docs/wiki/Console-Command-Line You can then use the `--out` option, to get the TestResult.xml file to where you require it. – Chris Oct 13 '16 at 13:49
  • Great - glad you're up and running! – Chris Oct 13 '16 at 14:49