1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-30 02:02:06 +01:00

Generate unit test reports

So that these can be parsed by Bamboo
This commit is contained in:
Florian Schmaus 2014-02-06 17:39:52 +01:00
parent 2cb3d5a0d4
commit 52a8a835ee

View file

@ -64,6 +64,7 @@
<property name="merge.lib.dir" value="${basedir}/build/merge" /> <property name="merge.lib.dir" value="${basedir}/build/merge" />
<property name="test.dir" value="${basedir}/test" /> <property name="test.dir" value="${basedir}/test" />
<property name="test-unit.dir" value="${basedir}/test-unit" /> <property name="test-unit.dir" value="${basedir}/test-unit" />
<property name="test-unit-reports.dir" value="${basedir}/test-reports" />
<property name="resources.dir" value="${basedir}/build/resources" /> <property name="resources.dir" value="${basedir}/build/resources" />
<property name="jingle.extension.merge.lib.dir" value="${basedir}/jingle/extension/build/merge" /> <property name="jingle.extension.merge.lib.dir" value="${basedir}/jingle/extension/build/merge" />
<property name="jingle.extension.lib.dir" value="${basedir}/jingle/extension/build/lib" /> <property name="jingle.extension.lib.dir" value="${basedir}/jingle/extension/build/lib" />
@ -459,6 +460,7 @@
<!-- test-unit --> <!-- test-unit -->
<!-- ======================================================================================= --> <!-- ======================================================================================= -->
<target name="test-unit" depends="compile, jar-test, jar-test-smackx" unless="no.test"> <target name="test-unit" depends="compile, jar-test, jar-test-smackx" unless="no.test">
<mkdir dir="${test-unit-reports.dir}" />
<junit printsummary="on" <junit printsummary="on"
fork="false" fork="false"
haltonfailure="false" haltonfailure="false"
@ -489,8 +491,9 @@
</classpath> </classpath>
<formatter type="brief" usefile="false"/> <formatter type="brief" usefile="false"/>
<formatter type="xml" />
<batchtest> <batchtest todir="${test-unit-reports.dir}">
<fileset dir="${basedir}/test-unit"> <fileset dir="${basedir}/test-unit">
<patternset refid="test.cases" /> <patternset refid="test.cases" />
</fileset> </fileset>