Thanks Mark - gen-report would absolutely kill my machine everytime. It was
taking longer than the actual tests to run!
Regards,
Oliver
Mark Hindess wrote:
Frustrated with the time that gen-report takes to produce a report
(which mainly consists of pages and pages of information about test
passes that I'll never read), I implemented a short report mode on
Friday. So now, running:
ant -Dshort.report=true test
will produce a report that only contains information about tests that
have failures or errors. Unless you've broken something really badly
it will run in a tiny fraction of the time that the full report takes -
15minutes for me if I run all the classlib tests!
Regards,
Mark.
On 13 October 2006 at 20:58, [EMAIL PROTECTED] wrote:
Author: hindessm
Date: Fri Oct 13 13:58:51 2006
New Revision: 463824
URL: http://svn.apache.org/viewvc?view=rev&rev=463824
Log:
Generating the test report takes ten minutes on my thinkpad so I've added
a short report mode that only reports on tests that have either errors or
failures. It takes only a few seconds assuming most tests are passing.
Activate it with command line argument -Dshort.report=true.
Modified:
incubator/harmony/enhanced/classlib/trunk/make/build-test.xml
Modified: incubator/harmony/enhanced/classlib/trunk/make/build-test.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/m
ake/build-test.xml?view=diff&rev=463824&r1=463823&r2=463824
=============================================================================
=
--- incubator/harmony/enhanced/classlib/trunk/make/build-test.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/make/build-test.xml Fri Oct 13
13:58:51 2006
@@ -52,7 +52,9 @@
<call-modules target="test" />
</target>
- <target name="gen-report">
+ <target name="gen-report" depends="full-report,short-report" />
+
+ <target name="full-report" unless="short.report" >
<junitreport todir="${tests.output}">
<fileset dir="${tests.output}">
<include name="TEST*-*.xml"/>
@@ -63,6 +65,20 @@
<!-- use this property just to get the slashes to display right in t
he echo -->
<property name="display-location" location="${tests.output}/html/ind
ex.html"/>
<echo message="The test report is in ${display-location}"/>
+ </target>
+
+ <target name="short-report" if="short.report" >
+ <junitreport todir="${tests.output}">
+ <fileset dir="${tests.output}" includes="TEST*-*.xml">
+ <containsregexp expression='(errors|failures)="[1-9]' />
+ <exclude name="TESTS-TestSuites.xml" />
+ </fileset>
+ <report format="frames" todir="${tests.output}/html"/>
+ </junitreport>
+
+ <!-- use this property just to get the slashes to display right in t
he echo -->
+ <property name="display-location" location="${tests.output}/html/ind
ex.html"/>
+ <echo message="The short test report is in ${display-location}"/>
</target>
<target name="support-jar" depends="compile-support">
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Oliver Deakin
IBM United Kingdom Limited
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]