ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: JUnit task
Date Mon, 05 Dec 2005 20:38:20 GMT
> <target name="test" >
>  <junit printsummary="withOutAndErr" showoutput="yes">
>  <formatter type="brief" usefile="false"/>
>    <batchtest fork="yes">
>      <fileset dir="testing">
>        <include name="**/*Test.class"/>
>      </fileset>
>    </batchtest>
>  </junit>
> </target>
>
> so it seems the fileset bit works (finds the test) but JUnit doesn't have
> the classpath.

Simply because you didn't provide any ;-)

You'd need a nested <classpath> (within <junit>) with at least your
"testing" directory, and any other jar(s) or directory(ies) required
to run the tests. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message