Skip to content

Commit

Permalink
[Truffle] Added ant build file for generating jUnit report from mspec…
Browse files Browse the repository at this point in the history
… results.
  • Loading branch information
nirvdrum committed Feb 24, 2015
1 parent 2a3dc1f commit 7d01022
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/truffle/buildTestReports.xml
@@ -0,0 +1,25 @@
<!--
~ Taken from StackOverflow: http://stackoverflow.com/questions/2385553/how-can-i-generate-an-html-report-for-junit-results
~ Answer provided by RPM: http://stackoverflow.com/users/327386/rpm
~ Licensed by cc-wiki license: http://creativecommons.org/licenses/by-sa/3.0/
~
~ Run from JRuby root directory as: ant -buildfile spec/truffle/buildTestReports.xml
-->
<project name="genTestReport" default="gen" basedir="../../">
<description>
Generate an HTML report from jUnit XML files.
</description>

<target name="gen">
<property name="genReportDir" location="tmp/unitTestReports"/>
<delete dir="${genReportDir}"/>
<mkdir dir="${genReportDir}"/>
<junitreport todir="tmp/unitTestReports">
<fileset dir="tmp">
<include name="**/TEST-*.xml"/>
</fileset>
<report format="frames" todir="${genReportDir}/html"/>
</junitreport>
</target>
</project>

0 comments on commit 7d01022

Please sign in to comment.