forked from I2P_Developers/i2p.i2p
increase maxmemory when running junit tests, directly write reports to reports directory instead of moving them later
This commit is contained in:
@ -53,7 +53,15 @@
|
|||||||
</cobertura-instrument>
|
</cobertura-instrument>
|
||||||
</target>
|
</target>
|
||||||
<target name="test" depends="clean, compileTest, prepareTest">
|
<target name="test" depends="clean, compileTest, prepareTest">
|
||||||
<junit printsummary="on" fork="yes">
|
<delete>
|
||||||
|
<fileset dir="../../reports/core/junit">
|
||||||
|
<include name="TEST-*.xml"/>
|
||||||
|
</fileset>
|
||||||
|
</delete>
|
||||||
|
<mkdir dir="../../reports/" />
|
||||||
|
<mkdir dir="../../reports/core/" />
|
||||||
|
<mkdir dir="../../reports/core/junit/" />
|
||||||
|
<junit printsummary="on" fork="yes" maxmemory="384m">
|
||||||
<sysproperty key="net.sourceforge.cobertura.datafile" file="./cobertura.ser" />
|
<sysproperty key="net.sourceforge.cobertura.datafile" file="./cobertura.ser" />
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement path="${classpath}" />
|
<pathelement path="${classpath}" />
|
||||||
@ -62,7 +70,7 @@
|
|||||||
<pathelement location="../../installer/lib/jbigi/jbigi.jar" />
|
<pathelement location="../../installer/lib/jbigi/jbigi.jar" />
|
||||||
<pathelement location="${with.cobertura}" />
|
<pathelement location="${with.cobertura}" />
|
||||||
</classpath>
|
</classpath>
|
||||||
<batchtest>
|
<batchtest todir="../../reports/core/junit/">
|
||||||
<fileset dir="./test/">
|
<fileset dir="./test/">
|
||||||
<include name="**/*Test.java" />
|
<include name="**/*Test.java" />
|
||||||
<exclude name="**/ElGamalAESEngineTest.java" />
|
<exclude name="**/ElGamalAESEngineTest.java" />
|
||||||
@ -71,24 +79,6 @@
|
|||||||
</batchtest>
|
</batchtest>
|
||||||
<formatter type="xml"/>
|
<formatter type="xml"/>
|
||||||
</junit>
|
</junit>
|
||||||
<mkdir dir="../../reports/" />
|
|
||||||
<mkdir dir="../../reports/core/" />
|
|
||||||
<mkdir dir="../../reports/core/junit/" />
|
|
||||||
<delete>
|
|
||||||
<fileset dir="../../reports/core/junit">
|
|
||||||
<include name="TEST-*.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</delete>
|
|
||||||
<copy todir="../../reports/core/junit">
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="TEST-*.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
<delete>
|
|
||||||
<fileset dir=".">
|
|
||||||
<include name="TEST-*.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</delete>
|
|
||||||
</target>
|
</target>
|
||||||
<target name="cobertura" depends="test" if="with.cobertura">
|
<target name="cobertura" depends="test" if="with.cobertura">
|
||||||
<mkdir dir="../../reports/core/cobertura" />
|
<mkdir dir="../../reports/core/cobertura" />
|
||||||
|
Reference in New Issue
Block a user