Allow a single JUnit test to be run if the test.entry property is defined

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1063393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-01-25 18:36:52 +00:00
parent dc0bf055a7
commit e56bea66fd
1 changed files with 6 additions and 1 deletions

View File

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