Skip to content

Instantly share code, notes, and snippets.

@swallez
Created November 28, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swallez/e6bddc52f6b9b168cdf5d56588c45a08 to your computer and use it in GitHub Desktop.
Save swallez/e6bddc52f6b9b168cdf5d56588c45a08 to your computer and use it in GitHub Desktop.
Ant file that produces html JUnit reports
<project name="scala-services" default="junitreport">
<target name="junitreport">
<mkdir dir="./target/test-html"/>
<junitreport>
<fileset dir="./target/test-reports">
<include name="TEST-*.xml"/>
</fileset>
<report todir="./target/test-html"/>
</junitreport>
<script language="javascript"><![CDATA[
java.awt.Desktop.getDesktop().open(new java.io.File("./target/test-html/index.html"));
]]></script>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment