Hello, please excuse the newbie question.
For the Apache Lucene project I'd like to paralleize the unit tests by
subclassing JUnitTask into ParallelJUnitTask which executes JUnitTests in
threads.

I don't understand how to place things like <batchtest> into the new
<paralleljunit> task tag properly.  Here's what I've tried in the build.xml:

<paralleljunit xmlns="antlib:org.apache.lucene.ant" printsummary="off"
haltonfailure="no" maxmemory="512M">
      <contrib-settings />
      <formatter type="xml"/>
      <formatter type="brief" usefile="false"/>
      <batchtest fork="yes" todir="@{junit.output.dir}" if="runall">
        <fileset dir="@{dataDir}" includes="${junit.includes}"
excludes="${junit.excludes}"/>
      </batchtest>
      <batchtest fork="yes" todir="@{junit.output.dir}" if="testpackage">
        <fileset dir="@{dataDir}"
includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"
excludes="${junit.excludes}"/>
      </batchtest>
      <batchtest fork="yes" todir="@{junit.output.dir}"
if="testpackageroot">
        <fileset dir="@{dataDir}"
includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"
excludes="${junit.excludes}"/>
      </batchtest>
      <batchtest fork="yes" todir="@{junit.output.dir}" if="testcase">
        <fileset dir="@{dataDir}" includes="**/${testcase}.java"/>
      </batchtest>
  </paralleljunit>

Reply via email to