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/02/06 15:45:18 UTC

Ant and Junit

How do I run in Ant 1.6.5 a Junite-Tests that are stored in a classfile that contains the .class-files of the tests.

<batchtest> uses a fileset, but how do I put the content of a jarfile to Junit?
If I do it in a Batchfile it is no problem.

Example this does not work (The jarfile is part of the junit.classpath):
<junit errorproperty="dope.test.failed"
          		 dir="${basepath}"
               failureproperty="test.failed"
               maxmemory="1024m"
               fork="yes"/>
          <classpath>
            <path refid="junit.classpath"/>
          </classpath>
          <formatter type="brief" usefile="false"/>
          <formatter type="xml" usefile="true"/>
            <batchtest todir="${dope.report.dir}">
                <fileset dir="." >
                    <include name="${junit.testpattern}"/>
                </fileset>
            </batchtest>
        </junit>

-- 
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