ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: running junit from ant
Date Fri, 13 Jan 2006 04:56:01 GMT
On Thu, 12 Jan 2006, Lothar Krenzien <lkrenzien@web.de> wrote:

> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> image : Missing dependency
> com.sun.media.jai.codec.FileSeekableStream sshexec : Missing
> dependency com.jcraft.jsch.UserInfo scp : Missing dependency
> com.jcraft.jsch.UserInfo jdepend : Missing dependency
> jdepend.xmlui.JDepend
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> What does it mean ? Do I need some missing libraries ?

Only if you intend to use one of these tasks.  If so, check the
library dependencies section in the manual.

>        <junit haltonerror="true" haltonfailure="true"
>        printsummary="true"> <classpath refid="class.path" />
> 
>          	<formatter type="plain" usefile="true"/> <batchtest
>          	todir="${bin.dir}" fork="true"> <fileset
>          	dir="${out.dir}/WEB-INF/classes/sr2/test/">
>          	<filename name="**/TestRunner"/> </fileset>
>          	</batchtest>
>   	   	
>        </junit> </target>
> 
> The class TestRunner start either the SwingGUI or the TextGUI

Ah, so you are not really using the junit task at all that way.

<junit> runs tests inside a test runner of its own, not one JUnit's
runners.  Ant only captures the results of tests run by its own
TestRunner.  So from Ant's perspective TestRunner is the only test it
needs to keep track of.

Stefan

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


Mime
View raw message