ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rutger Lubbers" <rutger.lubb...@qnh.nl>
Subject JUnit Filter, extension of JUnitTask?
Date Wed, 03 Oct 2007 08:48:11 GMT
Hi,

JUnit (since 4.?) allows filtering of the tests to be run. It would be
nice to allow ant build scripts to use this filter capacity. This would
allow developers to run a (small, fast running) set of tests, while the
integration or production build runs extra test sets. The filtering only
works with JUnit 4 test code.

I've changed a few source files (of ant 1.7.0) and added two. It works
fine (here). It requires (at the moment) a typedef of the filter:
<typedef name="junitfilter"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitFilter"/>

and can be used as follows:
<junit>
	<junitfilter 
		classname="com.example.JUnitDBFilter"
		properties="dbtest"/>
</junit>

I would like to know if you find this useful (enough) for inclusion.
Would someone like to see the code and comment on it?

Thanks & Kind regards,

Rutger Lubbers


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message