/xunit-to-html

Beautify your xUnit test reports.

Primary LanguageXSLTMIT LicenseMIT

🚀 xunit-to-html

PRs Welcome Open Source Love MIT Licence

xunit-to-html converts xUnit XML reports into beautiful looking HTML reports using XSLT.

usage

Supported Frameworks

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

Prerequisites

  1. Environment with Java 8+ installed
  2. The open source Saxon Home Edition jar which has been included in this repository.

Installing and Getting Started

xunit-to-html can be easily be used as part of a build pipeline to produce beautiful looking test reports.

  1. Clone this repository
  2. Run your tests and generate an xUnit XML report using a test framework of your choice.
  3. Assuming the input xUnit report name is report.xml, and we want to generate an html report report.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.

Authors