harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml
Date Fri, 13 Oct 2006 20:58:52 GMT
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">



Mime
View raw message