ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: AntUnit
Date Wed, 28 Jan 2009 16:15:59 GMT
On 2009-01-28, <ext-simon.steiner@nokia.com> wrote:

> We are testing something that requires the listener to be
> running. Listeners don't seem to run when calling antunit

This is true.  The project instance running the AntUnit test target
doesn't have any BuildListeners attached to it (other than AntUnit's
own listeners, that is).

This is a use case AntUnit doesn't fully cover.  The dev list (even
more silent than this user list) may be the better place to discuss
how AntUnit could be enhanced to help your case.

Does it help your case if you attach a plainlistener with setting
logLevel to something other than none?  That way the log of the
project under test gets back to the project running the AntUnit task
and then to your BuildListener.

Would https://issues.apache.org/bugzilla/show_bug.cgi?id=43582 improve
the situation in your case?

> or <ant dir="project" target="test"/>.

At least since Ant 1.6.2 this should make the new project inherit the
listeners of the calling project.

Stefan

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


Mime
View raw message