Skip to content

Instantly share code, notes, and snippets.

@allanlewis
Last active August 18, 2017 09:48
Show Gist options
  • Save allanlewis/ea3a556351a0dabdb1d8bc0b6b92cac0 to your computer and use it in GitHub Desktop.
Save allanlewis/ea3a556351a0dabdb1d8bc0b6b92cac0 to your computer and use it in GitHub Desktop.
A configuration for Ant to generate a report based on a JUnit XML file.
<?xml version="1.0" encoding="UTF-8"?>
<project name="JUnit Reporter" basedir="." default="main">
<mkdir dir="reports" />
<target name="junit">
<junitreport todir="./reports">
<fileset dir=".">
<include name="junit.xml"/>
</fileset>
<report format="frames" todir="./reports/frames" />
<report format="noframes" todir="./reports/noframes" />
</junitreport>
</target>
</project>
Replace me with a test results file from Jenkins, or from `py.test --junit.xml=junit.xml ...`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment