Author: kkolinko
Date: Sat Feb 14 16:38:53 2015
New Revision: 1659803
URL: http://svn.apache.org/r1659803
Log:
List names of failed tests
It searches the test report files for ones that do not have zero failures and
lists their names.
Modified:
tomcat/trunk/build.xml
Modified: tomcat/trunk/build.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1659803&r1=1659802&r2=1659803&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Sat Feb 14 16:38:53 2015
@@ -1341,6 +1341,21 @@
<target name="test" description="Runs the JUnit test cases"
depends="test-nio,test-nio2,test-apr,cobertura-report" >
+ <fileset id="test.result.failedtests" dir="${test.reports}"
includes="*.txt">
+ <not>
+ <contains text="Failures: 0, Errors: 0" />
+ </not>
+ </fileset>
+ <concat>
+ <header>Failed tests:${line.separator}</header>
+ <string>${toString:test.result.failedtests}</string>
+ <filterchain>
+ <tokenfilter>
+ <replaceregex pattern=";" replace="${line.separator}"/>
+ </tokenfilter>
+ </filterchain>
+ </concat>
+
<fail if="test.result.error" message='Some tests completed with an Error.
See ${tomcat.build}/logs for details, search for "FAILED".' />
<fail if="test.result.failure" message='Some tests completed with a
Failure. See ${tomcat.build}/logs for details, search for "FAILED".' />
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]