easier uintegration of junit4 in build.xml
parent
c07215ab5a
commit
94a47045af
16
build.xml
16
build.xml
|
@ -22,7 +22,12 @@
|
||||||
<property name="examples.dir" value="examples/"/>
|
<property name="examples.dir" value="examples/"/>
|
||||||
<property name="examples.build.dir" value="examples/build"/>
|
<property name="examples.build.dir" value="examples/build"/>
|
||||||
<property name="reports.dir" value="build/reports"/>
|
<property name="reports.dir" value="build/reports"/>
|
||||||
<property name="junit4" value="junit-4.11.jar" />
|
|
||||||
|
<!-- These paths should be relative to JUNIT_HOME -->
|
||||||
|
<property name="junit4" value="junit-4.12.jar" />
|
||||||
|
<property name="hamcrest-core" value="hamcrest-core-1.3.jar" />
|
||||||
|
<property name="ant-junit4" value="ant/ant-junit4.jar" />
|
||||||
|
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
|
|
||||||
<!-- classpath to compiled wolfssl.jar, for running tests -->
|
<!-- classpath to compiled wolfssl.jar, for running tests -->
|
||||||
|
@ -32,7 +37,6 @@
|
||||||
</fileset>
|
</fileset>
|
||||||
<fileset dir="${env.JUNIT_HOME}">
|
<fileset dir="${env.JUNIT_HOME}">
|
||||||
<include name="${junit4}"/>
|
<include name="${junit4}"/>
|
||||||
<include name="ant-junit4.jar"/>
|
|
||||||
</fileset>
|
</fileset>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
@ -139,11 +143,15 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="test" depends="build-test">
|
<target name="test" depends="build-test">
|
||||||
<junit printsummary="yes" showoutput="yes" haltonfailure="yes">
|
<junit printsummary="yes" showoutput="yes" haltonfailure="yes" fork="true">
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${build.dir}"/>
|
<pathelement location="${build.dir}"/>
|
||||||
<pathelement location="${test.build.dir}"/>
|
<pathelement location="${test.build.dir}"/>
|
||||||
<pathelement location="${java.class.path}"/>
|
<fileset dir="${env.JUNIT_HOME}">
|
||||||
|
<include name="${junit4}"/>
|
||||||
|
<include name="${hamcrest-core}"/>
|
||||||
|
<include name="${ant-junit4}"/>
|
||||||
|
</fileset>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
||||||
<formatter type="plain"/>
|
<formatter type="plain"/>
|
||||||
|
|
Loading…
Reference in New Issue