5
votes

When using nunit-console.exe to run tests from the command line you can have a result.xmlfile created, which can further be used for example by ReportUnit to create nice looking reports.

Question

Is there a way to produce this result.xml file when running the tests not via nunit-console but with the NUnit (3.0) Test Adapter for Visual Studio via the Test Explorer Window?

At least I wasn't able to find an xml file after the tests finished running, so I assume, that there is none created.

* I'm using Microsoft Visual Studio Community 2015

1
The visual studio test runner generates a .trx file, which holds similar content, but is not compatible with the jUnit/NUnit xml format. - jessehouwing
@jessehouwing: thx! that's already a nice tip, I'll have a look at how to parse those, maybe that's already sufficient for now. Still the question holds even though I fear I already know the answer =( - drkthng
My suspicion is, no won't do.But this may help: mytechfinds.com/articles/software-testing/6-test-automation/… - jessehouwing

1 Answers

0
votes

NUnit XML output could be produced by the NUnit console and GUI runners only. You won't get it with Visual Studio