Change your ant build file to use junitour: add
<formatter usefile="true" classname="junitour.UnitourResultFormatter" extension=".xml"/> <formatter usefile="false" classname="junitour.UnitourSummaryResultFormatter" />
To make use of the junitour lib in your own application, do the following:
<target name="internal-test" depends="compile-tests"> <mkdir dir="${testreportdir}"> </mkdir> <junit dir="./" failureproperty="test.failure" fork="true" haltonerror="false"> <sysproperty key="basedir" value="."> </sysproperty> <formatter usefile="true" classname="junitour.UnitourResultFormatter" extension=".xml"> </formatter> <formatter usefile="false" classname="junitour.UnitourSummaryResultFormatter"></formatter> <!-- <formatter usefile="false" type="plain"> </formatter>--> <classpath> <fileset dir="${libdir}"> <include name="*.jar"> </include> </fileset> <pathelement path="${testclassesdir}"> </pathelement> <pathelement path="${classesdir}"> </pathelement> </classpath> <batchtest todir="${testreportdir}"> <fileset dir="${basedir}\src\java\test"> <include name="**/*Test.java"> </include> </fileset> </batchtest> </junit> </target>
<junitreport todir="${testreportdir}" > <fileset dir="${testreportdir}" > <include name="TEST-*.xml"/> </fileset> <report format="noframes" styledir="${basedir}/conf" todir="${docdir}" /> </junitreport>