Blog

Producing HTML output from NUnit?

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 developers asked me to make it easier to find out which test failed versus parsing through 100s 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 hes looking for as well!

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