Skip to content
March 23, 2013 / kiranpatils

Nunit results to HTML

Challenge:

Are you searching for a solution to covert your Nunit results in to HTML format? Then this post is for you! Because couple of weeks back, we were also doing same as you, and after bit of research we found a way to do it! To make your life easy, sharing it here:

Solution:

1. Run your test using Nunit [For batch file we can use nunit-console].

2.  It will create XML result “TestResult.xml”

3. Now using Nunit2Report Console application we can convert XML in to HTML.

e.g. “”c:\test\NUnit2Report.Console.Release.Mixed Platforms.v1.0.0.0\NUnit2Report.Console.exe” –fileset=”C:\test\TestResult.xml””

https://github.com/jupaol/NUnit2Report.Console/

NUnit2Report Console is a tool to transform the NUnit xml results file to an Html user-friendly report using XSL files, the tool was originally designed to be integrated with NAnt as a NAnt task and it was created by Gilles Bayon. This version converts the original NUnittoReportTask to a console version to be able to use it freely without the use of NAnt

Good to read:
http://weblogs.asp.net/thangchung/archive/2010/12/17/generating-report-for-nunit.aspx
http://sourceforge.net/projects/nunit2report/

Happy conversion!🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: