You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2006/10/13 22:58:52 UTC
svn commit: r463824 -
/incubator/harmony/enhanced/classlib/trunk/make/build-test.xml
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/make/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 the echo -->
<property name="display-location" location="${tests.output}/html/index.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 the echo -->
+ <property name="display-location" location="${tests.output}/html/index.html"/>
+ <echo message="The short test report is in ${display-location}"/>
</target>
<target name="support-jar" depends="compile-support">
Re: [classlib] quicker reporting of test failures/errors (was Re: svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)
Posted by Tony Wu <wu...@gmail.com>.
Nice! I'll generate only error/failure tests in selfhosting like that:)
On 10/16/06, Mark Hindess <ma...@googlemail.com> 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, hindessm@apache.org 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: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Tony Wu
China Software Development Lab, IBM
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib] quicker reporting of test failures/errors (was Re:
svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Nice! is there any chance this could be documented - even in the
build.xml file - for those of us that are recall-challenged?
geir
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, hindessm@apache.org 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: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib] quicker reporting of test failures/errors (was Re:
svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)
Posted by Oliver Deakin <ol...@googlemail.com>.
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, hindessm@apache.org 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: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
>
--
Oliver Deakin
IBM United Kingdom Limited
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [classlib] quicker reporting of test failures/errors (was Re:
svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)
Posted by Spark Shen <sm...@gmail.com>.
Mark Hindess 写道:
> 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!
>
>
Great work! Thanks.
Best regards
> Regards,
> Mark.
>
> On 13 October 2006 at 20:58, hindessm@apache.org 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: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
>
--
Spark Shen
China Software Development Lab, IBM
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
[classlib] quicker reporting of test failures/errors (was Re: svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)
Posted by Mark Hindess <ma...@googlemail.com>.
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, hindessm@apache.org 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: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org