ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject Ant and Junit
Date Wed, 06 Feb 2008 14:45:18 GMT
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


Mime
View raw message