ant-dev mailing list archives

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

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"

and can be used as follows:

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:
For additional commands, e-mail:

View raw message