ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47913] New: Allow to add one or more Junit RunListener instances in the Junit task
Date Mon, 28 Sep 2009 21:32:02 GMT

           Summary: Allow to add one or more Junit RunListener instances
                    in the Junit task
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Optional Tasks


Not fond in the existing bugs or RFE.

I try to solve the following problem. We have some hundreds of unit tests
running. It happens that one of them takes a lot of time to run or is blocked.
In an IDE like Eclipse, I can see which test is running in the Junit window.
When I run the tests through the Junit task of Ant, I cannot. I have to wait
for the test report.

Junit provides a way to add one or more RunListener instances
to a JunitCore object. The Junit RunNotifier class allows also to add some
The problem is that I do not have any hook to do this at all while the runner
used by Ant has normally access to these classes. I even suppose that it
already takes advantage of them.

What I suggest is to add to the Junit task an optional attribute, which would
be a comma delimited list of listener FQN (or if you prefer a single one a one
could call others).
<junit runlistener="com.acme.MyListener">

With this I am free to do anything that I want, report a progress in one or
many log files, timing my tests, detect a problem and link it to a precise



Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message