You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Knuplesch, Juergen" <Ju...@icongmbh.de> on 2008/10/16 17:53:44 UTC

How to use zipped Junittestclasses

Hello,

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"
                   failureproperty="test.failed"
                   maxmemory="1024m"
                   fork="yes"
                   timeout="1000000" showoutput="false">
              <classpath>
                <path refid="junit.classpath"/>
              </classpath>
              <formatter type="brief" usefile="false"/>
              <formatter type="xml" usefile="true"/>
                <batchtest todir="${report.dir}">
                    <zipfileset src="jutest.jar">
                      <include name="${junit.testpattern}"/>
                    </zipfileset>
                </batchtest>
            </junit>

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                    www.icongmbh.de
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org