ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject How to use zipped Junittestclasses
Date Thu, 16 Oct 2008 15:53:44 GMT

I want to run Junittests that are stored as classfiles in a jar file.

Is it possible with Ant 1.6.5 or Ant 1.7 to use the junit-task without unjar the testfiles?

I want do do sth like this:

<junit errorproperty="dope.test.failed"
                   timeout="1000000" showoutput="false">
                <path refid="junit.classpath"/>
              <formatter type="brief" usefile="false"/>
              <formatter type="xml" usefile="true"/>
                <batchtest todir="${report.dir}">
                    <zipfileset src="jutest.jar">
                      <include name="${junit.testpattern}"/>

This does not select any test.

How can I select test out of jutest.jar?

(If I do it via a Batchfile it is possible!)

Jürgen Knuplesch          
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message