Producing HTML output from NUnit?

Eric PughApril 12, 2007

As part of our build process we run NUnit and NCover over some C# code. We are currently focusing on getting our code coverage up from the measly ~18% that the project is at.

One of the developer’s asked me to make it easier to find out which test failed versus parsing through 100’s of lines of raw build output. We already have NCover producing nice HTML reports of the code coverage metrics, so I figured I could do the same with the NUnit XML file as well.

Much to my dismay, it appears that you are expected to use the NUnit GUI application to parse the failure results! The only existing conversions to HTML that I could find was this blog posting on Automating NUnit and MSTest Builds. I tried out the conversion from XML to text output, and that was better, but very ugly.

Daniel Irvine commenting on the new NUnit 2.4 release also mentions that the XSLT transformation of the raw data is something he’s looking for as well!

If anyone has any suggestions, please let me know. I hope I haven’t talked myself into creating the XSLT transformation tool for NUnit!!

More blog articles:

Let's do a project together!

We provide tailored search, discovery and analytics solutions using Solr and Elasticsearch. Learn more about our service offerings