Java Mailing List Archive

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

Home » Ant Users List »

junit ant task test listeners

Chip McCormick

2010-08-23

Replies: Find Java Web Hosting

Author LoginPost Reply
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.

The only mention in the API of how to do this describes how to enable the test listener events, but does not explain how to add a listener for a specific event:
http://ant.apache.org/manual/Tasks/junit.html#enabletestlistenerevents

It looks like the 'enabletestlistenerevents' feature was added to ant in response to this bug:
https://issues.apache.org/bugzilla/show_bug.cgi?id=31885

Chip McCormick
Software Engineer
CommerceHub

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