Browse Source

Fork JUnit tests by default.

Otherwise two major problems prevent plain old 'ant test' from working:
1. You get NCDFEs, mostly from JUnit framework classes, for most tests.
2. The version tested is `which ant` rather than what is in the source tree,
   resulting in weird failures such as in ConcatTest:
     The <concat> type doesn't support the "overwrite" attribute.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@944377 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 15 years ago
parent
commit
c83d257891
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      build.xml

+ 4
- 1
build.xml View File

@@ -104,10 +104,10 @@
<property name="optimize" value="true"/>
<property name="javac.target" value="1.4"/>
<property name="javac.source" value="1.4"/>
<property name="junit.fork" value="false"/>
<property name="junit.filtertrace" value="off"/>
<property name="junit.summary" value="no"/>
<property name="test.haltonfailure" value="false"/>
<property name="junit.fork" value="true"/>
<property name="junit.forkmode" value="once"/>
<property name="expandproperty.files"
value="**/version.txt,**/defaultManifest.mf"/>
@@ -136,6 +136,8 @@
-->
<pathelement location="${src.junit}"/>
<pathelement location="${tests.etc.dir}"/>
<!-- Otherwise many tests fail with "com.sun.tools.javac.Main is not on the classpath.": -->
<pathelement location="${java.home}/../lib/tools.jar"/>
</path>

<!--
@@ -1529,6 +1531,7 @@ see ${build.junit.reports} / ${antunit.reports}
<property name="test.junit.vmargs" value=""/>
<property name="ant.junit.failureCollector"
value="${junit.collector.dir}/${junit.collector.class}"/>
<!-- XXX includeantruntime="false" does not solve "multiple versions of ant detected in path for junit" warning -->
<junit printsummary="${junit.summary}"
haltonfailure="${test.haltonfailure}"
fork="${junit.fork}"


Loading…
Cancel
Save