commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1063393 - /commons/proper/math/trunk/build.xml
Date Tue, 25 Jan 2011 18:36:53 GMT
Author: sebb
Date: Tue Jan 25 18:36:52 2011
New Revision: 1063393

URL: http://svn.apache.org/viewvc?rev=1063393&view=rev
Log:
Allow a single JUnit test to be run if the test.entry property is defined

Modified:
    commons/proper/math/trunk/build.xml

Modified: commons/proper/math/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/build.xml?rev=1063393&r1=1063392&r2=1063393&view=diff
==============================================================================
--- commons/proper/math/trunk/build.xml (original)
+++ commons/proper/math/trunk/build.xml Tue Jan 25 18:36:52 2011
@@ -191,7 +191,12 @@
                showOutput="true">
                <formatter usefile="false" type="plain"/>
                <classpath refid="test.classpath"/>
-               <batchtest>
+               <!-- If test.entry is defined, run a single test, otherwise run all valid
tests -->
+               <!-- N.B. test.entry must be the full path to the test class, for example:
+               ant test -Dtest.entry=org.apache.commons.math.util.FastMathTestPerformance
+               -->
+               <test name="${test.entry}" if="test.entry"/>
+               <batchtest unless="test.entry">
                    <fileset dir="${test.home}">
                       <include name="**/*Test.java"/> 
                       <include name="**/*TestBinary.java"/> 



Mime
View raw message