Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zir0-93/xunit-to-html
Beautify your xUnit test reports.
https://github.com/zir0-93/xunit-to-html
junit junit-xml-format junit-xml-reports nosetests xslt xunit xunit-tests
Last synced: 2 days ago
JSON representation
Beautify your xUnit test reports.
- Host: GitHub
- URL: https://github.com/zir0-93/xunit-to-html
- Owner: Zir0-93
- License: mit
- Created: 2018-12-01T05:54:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T00:03:39.000Z (about 6 years ago)
- Last Synced: 2024-11-01T23:42:08.388Z (about 2 months ago)
- Topics: junit, junit-xml-format, junit-xml-reports, nosetests, xslt, xunit, xunit-tests
- Language: XSLT
- Homepage:
- Size: 5.01 MB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :rocket: xunit-to-html
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)**xunit-to-html** converts xUnit XML reports into beautiful looking HTML reports using XSLT.
![usage](/usage.gif)
# 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](http://saxon.sourceforge.net/) 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`:
```bash
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
- [**Muntazir Fadhel**](https://zir0-93.github.io/) - *Initial work and maintainer*