ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Adding parallel JUnit task
Date Mon, 29 Jun 2009 22:59:44 GMT
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>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message