Update to JUnit 4.8.2
Avoid warnings about includeAntRuntime Generate text output for unit tests git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1072980 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3d300bb55
commit
1cc75e8fa5
16
build.xml
16
build.xml
|
@ -34,7 +34,7 @@
|
|||
|
||||
|
||||
<!-- Junit -->
|
||||
<property name="junit.version" value="4.4"/>
|
||||
<property name="junit.version" value="4.8.2"/>
|
||||
<property name="junit.home" value="/usr/share/junit"/>
|
||||
<property name="junit.jar" value="${junit.home}/junit-${junit.version}.jar"/>
|
||||
|
||||
|
@ -72,8 +72,11 @@
|
|||
<!-- The base directory for distribution targets -->
|
||||
<property name="dist.home" value="${build.home}/dist"/>
|
||||
|
||||
<!-- The base directory for test reports -->
|
||||
<property name="test.reports" value="${build.home}/test-reports"/>
|
||||
|
||||
<!-- Base file name for dist files -->
|
||||
<property name="final.name" value="${component.name}-${component.version}"/>
|
||||
<property name="final.name" value="${component.name}-${component.version}"/>
|
||||
|
||||
<!-- Directory where binary release files are staged -->
|
||||
<property name="stage.bin.dir" value="${dist.home}/stage-bin"/>
|
||||
|
@ -155,6 +158,7 @@
|
|||
target="${compile.target}"
|
||||
debug="${compile.debug}"
|
||||
deprecation="${compile.deprecation}"
|
||||
includeantruntime="false"
|
||||
optimize="${compile.optimize}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
|
@ -169,6 +173,7 @@
|
|||
destdir="${build.home}/test-classes"
|
||||
debug="${compile.debug}"
|
||||
deprecation="${compile.deprecation}"
|
||||
includeantruntime="false"
|
||||
optimize="${compile.optimize}">
|
||||
<classpath refid="test.classpath"/>
|
||||
</javac>
|
||||
|
@ -184,19 +189,20 @@
|
|||
|
||||
<target name="test" depends="compile.tests"
|
||||
description="Run unit tests">
|
||||
<mkdir dir="${test.reports}"/>
|
||||
<junit printsummary="true"
|
||||
errorProperty="test.failed"
|
||||
failureProperty="test.failed"
|
||||
fork="true"
|
||||
showOutput="true">
|
||||
<formatter usefile="false" type="plain"/>
|
||||
<formatter type="brief"/>
|
||||
<classpath refid="test.classpath"/>
|
||||
<!-- 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">
|
||||
<test name="${test.entry}" todir="${test.reports}" if="test.entry"/>
|
||||
<batchtest todir="${test.reports}" unless="test.entry">
|
||||
<fileset dir="${test.home}">
|
||||
<include name="**/*Test.java"/>
|
||||
<include name="**/*TestBinary.java"/>
|
||||
|
|
Loading…
Reference in New Issue