tags:

views:

200

answers:

2

For unclear reasons my Nunit test fixture cannot be executed in a single run, so I'm forced to execute a few tests in separate runs. However this means that the test results are splitted over multiple output files.

Is there a tool available which can merge NUnit result XML files into a single XML file?

I've tried using the existing Nunit-summary tool, but this simply sequentially parses the XML files with the given XSL file and concatenates the result as one big file.

Instead I would like it to merge/group the results for the test cases into the right namespaces/testfixtures first and then feed it to the XSLT processor. This way all test results should be displayed by fixture even though they're not gathered in a single run.

+1  A: 

If you're running under NAnt, the answers to this question look like they would help.

Doug
Thanks for the heads up, interesting. Unfortunately we're not using NAnt, but I'll keep it in mind.
Rob van Groenewoud
+1  A: 

I read on the web that Nunit result files are XML so i guess you can merge the file with an ordinary merge software as WinMerge

Ephemere
You are right about the result files being XML, and indeed merging should be possible with off the shelf tooling. However, the result file also includes metrics like total duration and duration per test case. Of course the totals would not match on a merged file without recalculating them.
Rob van Groenewoud