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:[EMAIL PROTECTED]


  • JUnit Siddhartha Chandurkar (EHPT)
    • Torsten Straube

Reply via email to