Author: rjung Date: Sat Apr 15 17:38:07 2017 New Revision: 1791527 URL: http://svn.apache.org/viewvc?rev=1791527&view=rev Log: Allow to exclude JUnit test classes using the build property "test.exclude" 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=1791527&r1=1791526&r2=1791527&view=diff ============================================================================== --- tomcat/trunk/BUILDING.txt (original) +++ tomcat/trunk/BUILDING.txt Sat Apr 15 17:38:07 2017 @@ -391,6 +391,12 @@ For example: test.name=**/TestSsl.java,**/TestWebSocketFrameClientSSL.java +You can exclude specific JUnit test classes by adding the "test.exclude" +property to the build.properties file. The property specifies an Ant +excludes pattern for the fileset of test class files to exclude form the run. +The default value is empty, so no classes are excluded. The syntax is the same +as for the property "test.name". + (7.4) Other configuration options Modified: tomcat/trunk/build.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1791527&r1=1791526&r2=1791527&view=diff ============================================================================== --- tomcat/trunk/build.xml (original) +++ tomcat/trunk/build.xml Sat Apr 15 17:38:07 2017 @@ -1469,6 +1469,8 @@ <exclude name="org/apache/tomcat/util/net/openssl/ciphers/**" unless="${test.openssl.exists}" /> <!-- Exclude performance tests. E.g. on systems with slow/inconsistent timing --> <exclude name="**/*Performance.java" if="${test.excludePerformance}" /> + <!-- Exclude a configurable list of tests --> + <exclude name="${test.exclude}" /> </fileset> </batchtest> </junit> Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1791527&r1=1791526&r2=1791527&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Sat Apr 15 17:38:07 2017 @@ -45,6 +45,15 @@ issues do not "pop up" wrt. others). --> <section name="Tomcat 9.0.0.M21 (markt)" rtext="in development"> + <subsection name="General"> + <changelog> + <add> + Allow to exclude JUnit test classes using the build property + <code>test.exclude</code> and document the property in + BUILDING.txt. (rjung) + </add> + </changelog> + </subsection> <subsection name="Jasper"> <changelog> <fix> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org