[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    Re: JUnit
From:       Torsten Straube <tstraube () picturesafe ! de>
Date:       2001-04-30 13:07:11
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic