Bug 43546

Summary: JUnit Test Filtering, junit task extension
Product: Ant Reporter: Rutger Lubbers <Rutger.Lubbers>
Component: Optional TasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: enhancement Keywords: PatchAvailable
Priority: P3    
Version: 1.7.0   
Target Milestone: ---   
Hardware: All   
OS: other   
Attachments: Modified files for ant 1.7.0

Description Rutger Lubbers 2007-10-04 00:22:21 UTC
In JUnit (>4.x) it's possible to filter the tests to be run by applying a
filter. Extend the JUnit task of ant, so users can define a filter to be applied.

Attached code for ant 1.7.0.

The filter can be configured thus:
<typedef name="filter"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitFilter"/>
<junit>
 ...
	<filter
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitPrefixFilter"
properties="testB"/>
</junit>
Comment 1 Rutger Lubbers 2007-10-04 00:23:35 UTC
Created attachment 20914 [details]
Modified files for ant 1.7.0