tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1570601 - in /tomcat/trunk: BUILDING.txt build.xml
Date Fri, 21 Feb 2014 15:13:15 GMT
Author: kkolinko
Date: Fri Feb 21 15:13:15 2014
New Revision: 1570601

URL: http://svn.apache.org/r1570601
Log:
Allow to limit JUnit test run to a number of selected test case methods. 

BUILDING.txt says that Ant 1.8.x is needed.
If we require a later version of Ant, e.g. 1.9.3 due to javadoc task security fixes,
then Ant 1.8.2 comment in BUILDING.txt can be removed.

Modified:
    tomcat/trunk/BUILDING.txt
    tomcat/trunk/build.xml

Modified: tomcat/trunk/BUILDING.txt
URL: http://svn.apache.org/viewvc/tomcat/trunk/BUILDING.txt?rev=1570601&r1=1570600&r2=1570601&view=diff
==============================================================================
--- tomcat/trunk/BUILDING.txt (original)
+++ tomcat/trunk/BUILDING.txt Fri Feb 21 15:13:15 2014
@@ -338,6 +338,16 @@ For example:
 
     test.entry=org.apache.catalina.util.TestServerInfo
 
+It is possible to further limit such run to a number of selected test
+methods by adding "test.entry.methods" property. The property specifies a
+comma-separated list of test case methods. (This feature requires
+Apache Ant 1.8.2 or later).
+
+For example:
+
+    test.entry=org.apache.el.lang.TestELArithmetic
+    test.entry.methods=testMultiply01,testMultiply02
+
 
 (7.3) Other configuration options
 

Modified: tomcat/trunk/build.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1570601&r1=1570600&r2=1570601&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Fri Feb 21 15:13:15 2014
@@ -1367,7 +1367,12 @@
                    extension="@{extension}${junit.formatter.extension}" />
 
         <!-- 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"/>
+        <test todir="${tomcat.build}/logs" name="${test.entry}"
+              if="test.entry" unless="test.entry.methods"
+           />
+        <test todir="${tomcat.build}/logs" name="${test.entry}" methods="${test.entry.methods}"
+              if="test.entry.methods"
+           />
         <batchtest todir="${tomcat.build}/logs" unless="test.entry">
           <fileset dir="test" >
             <!-- Include all by default -->



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


Mime
View raw message