xunit-to-html converts xUnit XML reports into beautiful looking HTML reports using XSLT.
xunit-to-html can be used to generate beautiful looking reports from any xUnit supported test framework, including the following ones:
- JUnit (supported schema are Ant junit and Maven Surefire)
- AUnit
- MSTest (imported from MSTest Plugin)
- NUnit (imported from NUnit Plugin)
- UnitTest++
- Boost Test Library
- PHPUnit
- Free Pascal Unit
- CppUnit
- MbUnit
- Googletest
- EmbUnit
- gtester/glib
- QTestLib
- nosetests
- Environment with Java 8+ installed
- The open source Saxon Home Edition jar which has been included in this repository.
xunit-to-html can be easily be used as part of a build pipeline to produce beautiful looking test reports.
- Clone this repository
- Run your tests and generate an xUnit XML report using a test framework of your choice.
- Assuming the input xUnit report name is
report.xml
, and we want to generate an html reportreport.html
:
java -jar saxon9he.jar -o:report.html -s:report.xml -xsl:xunit_to_html.xsl
report.html
will be generated in the working directory, you can now view or push the report to the cloud for further visibility.
- Muntazir Fadhel - Initial work and maintainer