ReportNG 0.9.8 – HTML and XML reports for TestNG
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 (pictured) 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.

on October 21st, 2008 at 7:48 pm
Congrats Dan for the new release!
I’ll be updating FEST with the new version for our next release
I just filed an enhancement request for Maven support.
Cheers,
-Alex
on October 21st, 2008 at 11:48 pm
Alex, ReportNG will be in Java.net’s Maven repository just as soon as they let me in
I keep getting 401 errors when I try to upload to it, even though I have been granted the necessary permissions.
on October 22nd, 2008 at 1:59 am
I finally figured out the Java.net Maven enigma. The wrong type of wagon apparently. So ReportNG 0.9.8 is now available from the Maven repository at http://download.java.net/maven/2/
on October 22nd, 2008 at 5:49 am
Sweet! Thanks Dan!
Cheers,
-Alex