Author: rjung
Date: Mon Jan 25 14:33:46 2016
New Revision: 1726628

URL: http://svn.apache.org/viewvc?rev=1726628&view=rev
Log:
Allow to configure multiple JUnit test class
patterns with the build property "test.name"
and document the property in BUILDING.txt.

Modified:
    tomcat/trunk/BUILDING.txt
    tomcat/trunk/build.xml
    tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/BUILDING.txt
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/BUILDING.txt?rev=1726628&r1=1726627&r2=1726628&view=diff
==============================================================================
--- tomcat/trunk/BUILDING.txt (original)
+++ tomcat/trunk/BUILDING.txt Mon Jan 25 14:33:46 2016
@@ -351,7 +351,24 @@ For example:
     test.entry.methods=testMultiply01,testMultiply02
 
 
-(7.3) Other configuration options
+(7.3) Running a set of tests
+
+It is possible to run a set of JUnit test classes by adding the "test.name"
+property to the build.properties file. The property specifies an ant
+includes pattern for the fileset of test class files to run.
+
+The default value is "**/Tester*.java", so all test classes are being
+executed.
+
+You can include multiple patterns by concatenating them with a comma (",")
+as the separator.
+
+For example:
+
+    test.name=**/TestSsl.java,**/TestWebSocketFrameClientSSL.java
+
+
+(7.4) Other configuration options
 
  1. It is possible to configure the directory where JUnit reports are
  written to. It is configured by "test.reports" property. The default

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1726628&r1=1726627&r2=1726628&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Mon Jan 25 14:33:46 2016
@@ -1471,9 +1471,8 @@
               if="test.entry.methods"
            />
         <batchtest todir="${test.reports}" unless="test.entry">
-          <fileset dir="test" >
-            <!-- Include all by default -->
-            <include name="${test.name}" />
+          <!-- Include all by default -->
+          <fileset dir="test" includes="${test.name}">
             <!-- Exclude helper classes -->
             <exclude name="**/Tester*.java" />
             <!-- Exclude the tests known to fail -->

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1726628&r1=1726627&r2=1726628&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Mon Jan 25 14:33:46 2016
@@ -45,6 +45,15 @@
   issues do not "pop up" wrt. others).
 -->
 <section name="Tomcat 9.0.0.M3" rtext="In development">
+  <subsection name="General">
+    <changelog>
+      <add>
+        Allow to configure multiple JUnit test class patterns with the build
+        property <code>test.name</code> and document the property in
+        BUILDING.txt. (rjung)
+      </add>
+    </changelog>
+  </subsection>
   <subsection name="Catalina">
     <changelog>
       <fix>



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

Reply via email to