The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 JUnit Reloaded
Subject:  Ant 1.7 supports junit4
Date:  2006-12-28 16:44:27
From:  steve_l
Response to: ant?


The junit task in Ant1.7 runs junit4 tasks, though it still reports them as junit3 (with a split between errors and failures) and doesnt log skipped tests.

As you said, there are no plans for full junit4 support in the main junit task which has to run with the java1.3+ codebase, and which has to support junit3.8.x

There is nothing to stop us adding a separate junit4 task, and I may do at some point if nobody else does. Before then I'm to do a major rework of the XML report structure though; moving away from DOM to something streaming and extensible that will let Junit4 *and* testNG report things like "timed out" and "skipped" as special failure/non execute categories, add integrated logging, and other things.

-Steve

Steve Loughran, Apache Ant team, Author "Ant in Action"

 Feed java.net RSS Feeds