Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
717 views
in Technique[技术] by (71.8m points)

formatting - How to convert NUnit output into an HTML report

Does anyone have any suggestions for a good tool, xslt or other that can produce an HTML report from the XML output of NUnit?

We're currently using NUnit 2.5.5 to run a number of tests on our code base. The dev team are happy seeing the output in the GUI and console runners and the report shown on our Hudson server.

The Hudson generated report needs a user to click links to drill down to some of the details. I would like to produce a single document report suitable for showing to management and/or the client.

Thus far, the only tool I've found is http://nunit2report.sourceforge.net/ which hasn't been updated sine 2003, is based on an old version of NUnit (I think the report format might have changed significantly?) and is a nant task (we don't use nant).

Before I spend too long trying to doctor nunit2reports xslt's to suit the recent NUnit's output, can anyone point be to a more suitable tool?

Many thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

ReportUnit is not maintained and is being replaced by extentreports-dotnet-cli.


You can also try ReportUnit, which also supports Gallio, xUnit, TestNG and MSTest: http://reportunit.relevantcodes.com

This is a simple exe file that will convert your xml report into an HTML dashboards (samples):

Usage:

reportunit "path-to-folder" // folder-level report
reportunit "path-to-folder" "output-folder" // folder-level report
reportunit "Result.xml" "generated.html" // file-level report

More info here: http://reportunit.relevantcodes.com


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...