Changed JUnit output to XML for Jenkins CI.

This commit is contained in:
2019-05-05 14:57:05 -04:00
parent 70c7d7d9b1
commit 606f069cff

View File

@@ -3,6 +3,7 @@
<description>Simple Framework for Testing Tree Search and Monte-Carlo Go</description>
<property name="src" location="src" />
<property name="reports" location="reports" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="test" location="test" />
@@ -65,6 +66,7 @@
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${reports}" />
</target>
<target name="dist" depends="compile,copy-resources,copy-libs" description="generate the distribution">
@@ -90,16 +92,17 @@
<target name="init">
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<mkdir dir="${reports}" />
</target>
<target name="test" depends="compile-test">
<junit haltonfailure="true">
<classpath refid="classpath.test" />
<formatter type="brief" usefile="false" />
<batchtest>
<formatter type="xml" />
<batchtest todir="${reports}">
<fileset dir="${build}" includes="**/*Test.class" />
</batchtest>
</junit>
</target>
</project>
</project>