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 2015/02/14 17:38:54 UTC
svn commit: r1659803 - /tomcat/trunk/build.xml
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: svn commit: r1659803 - /tomcat/trunk/build.xml
Posted by Rainer Jung <ra...@kippdata.de>.
Hi Konstantin,
I was looking at the same improvement in parallel. When I tried to
commit, I saw you had already solved it - and in a much better way than
what I had. Funny coincidence.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org