<target
depends="compile"
description="Tests the compiled classes."
name="test"
>
<echo message="${classpath}"/>
<antcall target="instrument"/>
<junit
dir="${tst.dir}"
failureproperty="test.failed"
fork="true"
haltonfailure="false"
jvm="${java.jvm}"
printsummary="true"
timeout="60000"
>
<sysproperty
file="${basedir}/cobertura.ser"
key="net.sourceforge.cobertura.datafile"
/>
<classpath>
<pathelement location="${tmp.dir}"/>
<pathelement path="${classpath}"/>
</classpath>
<formatter type="xml"/>
<batchtest todir="${tmp.dir}">
<fileset
dir="${tst.dir}"
includes="**/*Test.java"
/>
</batchtest>
</junit>
<antcall target="report"/>
<fail
if="test.failed"
message="Tests failed, report has beed generated."
/>
</target>
|