ReportNG 0.9.8 – HTML and XML reports for TestNG

Posted in Java by Dan on October 21st, 2008

Version 0.9.8 of ReportNG is now available for download. This version addresses a couple of issues with the XML output from the JUnitXMLReporter:

  • The XML output now includes failed and skipped configuration methods.  Previously these were included in HTML reports but omitted from the XML.
  • You can now control the dialect of the XML that is generated.  The default is to use the version that TestNG’s own reporter generates.  This includes the ability to mark tests as skipped and works well with Hudson.  Not all tools recognise the <skipped> element though, so you can now set the org.uncommons.reportng.xml-dialect property to "junit" (as opposed to "testng") and it will mark skips as failures. This works better with Ant’s junitreport task.

In addition, there have been a couple of enhancements to the HTML reporter:

  • There is now a separate page that collates all of the reporter log statements.
  • You can now specify your own stylesheet to over-ride the default appearance of the generated report.  Just set the org.uncommons.reportng.stylesheet property to the path of your CSS file. For example, the sample report looks like this when using a custom Hudson-inspired stylesheet.

Thanks to Ron Saito and Mike Feinberg for the feedback and suggestions that were incorporated into this release. If you have any problems, please use the issue tracker. And if you come up with a good custom CSS file for the HTML reports, please consider submitting it so that it can be included in the distribution.