sebb 2003/12/14 17:09:37
Modified: . build.xml
Log:
Add XML output to junit target
Add junitreport target
Change default target to AllTests
[Helps in finding long-running test cases]
Revision Changes Path
1.150 +19 -5 jakarta-jmeter/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-jmeter/build.xml,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -r1.149 -r1.150
--- build.xml 10 Dec 2003 10:43:58 -0000 1.149
+++ build.xml 15 Dec 2003 01:09:37 -0000 1.150
@@ -897,19 +897,33 @@
optional.jar is normally found in ANT_HOME/lib
-->
<target name="junit" description="Run individual JUnit test">
- <property name="test.case" value="org.apache.jmeter.junit.JMeterTest"/>
+ <mkdir dir="reports"/>
+ <property name="test.case1" value="org.apache.jmeter.junit.JMeterTest"/>
+ <property name="test.case" value="org.apache.jorphan.test.AllTests"/>
<junit fork="true"
dir="${basedir}/bin"
showoutput="true"
printsummary="withOutAndErr">
<formatter type="brief" usefile="no"/>
+ <formatter type="xml"/>
<classpath>
<path refid="classpath"/>
<fileset dir="${dest.jar}" includes="*.jar"/>
<fileset dir="${lib.opt}" includes="optional.jar"/>
</classpath>
- <test name="${test.case}"/>
+ <test name="${test.case}" todir="reports"/>
</junit>
+ </target>
+
+ <!-- Utility target to collate reports -->
+ <target name="junitreport">
+ <mkdir dir="reports"/>
+ <junitreport todir="reports">
+ <fileset dir="reports">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="reports"/>
+ </junitreport>
</target>
<!-- Run the HTML Parser unit tests -->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]