You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/01/25 19:36:53 UTC

svn commit: r1063393 - /commons/proper/math/trunk/build.xml

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"/>