ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Straube <tstra...@picturesafe.de>
Subject Re: JUnit
Date Mon, 30 Apr 2001 14:07:37 GMT
Hi,

the JUnit Task is optional, so you need to
put the optional.jar in your ${anthome}/lib directory.

If you already have done so,
how do you include your JUnit Task in the buildfile?

Mine looks like:

  <target name="utest" description="Unittests">
      <echo>Classpath=${cpc}\n
            build.dir=${build.dir}
      </echo>
      <junit printsummary="yes" haltonfailure="yes" >
          <formatter type="plain" />
          <test name="JUnitTests"/>
      </junit>
  </target>

and it works fine.

Torsten

"Siddhartha Chandurkar (EHPT)" wrote:

>
>
> Hi all,
>  when ever i am adding the tag related to JUnit
> <junit printsummary="yes" fork="yes" haltonfailure="yes">
> <formatter type="plain"/>
> <test name="XYZtest"/>
> </junit>
> It is giving me an Error.
> <Error>
> Unexpected element "junit"
> </Error>.
> Can anybody please help.
> Thanks & regards,
> Siddhartha

--
_________________________________________________________
Torsten Straube * picturesafe media/data/bank GmbH
L├╝erstr. 3 * D-30175 Hannover * phone: 0511/85620-53
fax: 0511/85620-10 * mailto:tstraube@picturesafe.de



Mime
View raw message