Bug 43546 - JUnit Test Filtering, junit task extension
Summary: JUnit Test Filtering, junit task extension
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.7.0
Hardware: All other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2007-10-04 00:22 UTC by Rutger Lubbers
Modified: 2009-07-31 07:13 UTC (History)
0 users



Attachments
Modified files for ant 1.7.0 (24.85 KB, application/x-gzip)
2007-10-04 00:23 UTC, Rutger Lubbers
Details

Note You need to log in before you can comment on or make changes to this bug.
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