You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2010/05/18 03:07:10 UTC

svn commit: r945446 - /tomcat/trunk/build.xml

Author: kkolinko
Date: Tue May 18 01:07:10 2010
New Revision: 945446

URL: http://svn.apache.org/viewvc?rev=945446&view=rev
Log:
Do not abort testing after the first failure,
but report about existence of failures after all the tests were run.

Modified:
    tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=945446&r1=945445&r2=945446&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Tue May 18 01:07:10 2010
@@ -919,7 +919,9 @@
 
       <!-- If test.entry is defined, run a single test, otherwise run all valid tests -->
       <test todir="${tomcat.build}/logs" name="${test.entry}" if="test.entry"/>
-      <batchtest todir="${tomcat.build}/logs" haltonerror="true" haltonfailure="true" unless="test.entry">
+      <batchtest todir="${tomcat.build}/logs" unless="test.entry"
+        errorproperty="test.result.error" failureproperty="test.result.failure" 
+        >
         <fileset dir="test" >
           <!-- Include all by default -->
           <include name="**/Test*.java" />
@@ -930,6 +932,9 @@
         </fileset>
       </batchtest>
     </junit>
+
+    <fail if="test.result.error" message="Some tests completed with an Error. See ${tomcat.build}/logs for details." />
+    <fail if="test.result.failure" message="Some tests completed with a Failure. See ${tomcat.build}/logs for details." />
   </target>
 
   <target name="extras-prepare" >



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org