Refactor unit test fork attribute in a default.properties property named "test.fork", default is true, as in the build.xml file.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@178721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-05-27 00:42:00 +00:00
parent e5bf3ab9b6
commit 015b77e3ea
2 changed files with 12 additions and 9 deletions

View File

@ -163,63 +163,63 @@ limitations under the License.
</target>
<target name="test.lang" depends="compile.tests">
<echo message="Running lang package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.LangTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.builder" depends="compile.tests">
<echo message="Running builder package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.builder.BuilderTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.enum" depends="compile.tests">
<echo message="Running enum package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.enum.EnumTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.exception" depends="compile.tests">
<echo message="Running exception package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.exception.ExceptionTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.math" depends="compile.tests">
<echo message="Running math package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.math.MathTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.mutable" depends="compile.tests">
<echo message="Running mutable package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.mutable.MutableTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.text" depends="compile.tests">
<echo message="Running text package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.text.TextTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.time" depends="compile.tests">
<echo message="Running time package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.time.TimeTestSuite"/>
<classpath refid="test.classpath"/>
</java>
</target>
<target name="test.util" depends="compile.tests">
<echo message="Running util package tests ..."/>
<java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
<java classname="${test.runner}" fork="${test.fork}" failonerror="${test.failonerror}">
<arg value="org.apache.commons.lang.util.UtilTestSuite"/>
<classpath refid="test.classpath"/>
</java>

View File

@ -52,6 +52,9 @@ source.home = src/java
# The base directory for unit test sources
test.home = src/test
# Whether or not to fork tests
test.fork = true
# Should Java compilations set the 'debug' compiler option?
compile.debug = true