Changed JUnit output to XML for Jenkins CI.
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
<description>Simple Framework for Testing Tree Search and Monte-Carlo Go</description>
|
<description>Simple Framework for Testing Tree Search and Monte-Carlo Go</description>
|
||||||
|
|
||||||
<property name="src" location="src" />
|
<property name="src" location="src" />
|
||||||
|
<property name="reports" location="reports" />
|
||||||
<property name="build" location="build" />
|
<property name="build" location="build" />
|
||||||
<property name="dist" location="dist" />
|
<property name="dist" location="dist" />
|
||||||
<property name="test" location="test" />
|
<property name="test" location="test" />
|
||||||
@@ -65,6 +66,7 @@
|
|||||||
<!-- Delete the ${build} and ${dist} directory trees -->
|
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||||
<delete dir="${build}" />
|
<delete dir="${build}" />
|
||||||
<delete dir="${dist}" />
|
<delete dir="${dist}" />
|
||||||
|
<delete dir="${reports}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="dist" depends="compile,copy-resources,copy-libs" description="generate the distribution">
|
<target name="dist" depends="compile,copy-resources,copy-libs" description="generate the distribution">
|
||||||
@@ -90,13 +92,14 @@
|
|||||||
<target name="init">
|
<target name="init">
|
||||||
<!-- Create the build directory structure used by compile -->
|
<!-- Create the build directory structure used by compile -->
|
||||||
<mkdir dir="${build}" />
|
<mkdir dir="${build}" />
|
||||||
|
<mkdir dir="${reports}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test" depends="compile-test">
|
<target name="test" depends="compile-test">
|
||||||
<junit haltonfailure="true">
|
<junit haltonfailure="true">
|
||||||
<classpath refid="classpath.test" />
|
<classpath refid="classpath.test" />
|
||||||
<formatter type="brief" usefile="false" />
|
<formatter type="xml" />
|
||||||
<batchtest>
|
<batchtest todir="${reports}">
|
||||||
<fileset dir="${build}" includes="**/*Test.class" />
|
<fileset dir="${build}" includes="**/*Test.class" />
|
||||||
</batchtest>
|
</batchtest>
|
||||||
</junit>
|
</junit>
|
||||||
|
|||||||
Reference in New Issue
Block a user