Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: junit ant task test listeners

Stefan Bodewig

2010-08-23

Replies: Find Java Web Hosting

Author LoginPost Reply
On 2010-08-23, Chip McCormick wrote:

> Does anyone know how to add a test listener to an ant junit task,
> without having to create a custom task?

> We are attempting to add a test listener to a junit ant task to do
> custom logging after each test class in a batch completes.

Ant's formatters are TestListeners and this sounds exactly as if you
wanted to attach your own kind of formatter. Formatters can be added
via nested <formatter> elements and a classname attribute - you can
specify a classpath to load the listener from as well.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.