Merging several NUnit TestResult.xml files together

2,014 views
Skip to first unread message

Markus Ewald

unread,
Mar 2, 2011, 5:11:43 AM3/2/11
to nunit-...@googlegroups.com
Hi!

I'm running NUnit through some NAnt scripts which currently invoke NUnit
per assembly (this seemed like a good choice because my script could
then enter each project's output directory where all required assembly
dependencies would end up in, instead of copying everything together
somewhere just to run NUnit on all assemblies in one go).

Now I wish to display the test results in Jenkins (a CI server with an
NUnit plugin), but it requires all test results in a single
TestResult.xml file.

Is there a NAnt task or command line utility that can merge multiple
TestResult.xml files?
I know that CruiseControl can do this, but the functionality is not
exposed as a NAnt task. I also found an MSBuild task, but that wouldn't
be quite optimal given that my current builds are 100.0% NAnt :)

-Markus-

Eberhard Beilharz

unread,
Mar 2, 2011, 5:50:33 AM3/2/11
to nunit-...@googlegroups.com
In Jenkins you can install the "Jenkins NUnit plugin" and then check the
"Publish NUnit test result report" in the job config. As "Test report
XMLs" you can specify "*-results.xml" which will then merge all results
files together.

Alternatively NAntContrib has a nunit2report task that can produce a
html file which you can archive as artifact in Jenkins.

We use both :-)

Eberhard

Reply all
Reply to author
Forward
0 new messages