Hi,

I'd like to filter the unit tests that surefire will run by using the includes parameter on the command line. With our ant build system, developers can do:

ant -Dpackage=rm test-match

and it will set a fileset like this "com/**/${package}/**/*Test.java" to limit the tests to be run to that package.

Is there a way to do this in Maven? I know that if you want to run a specific unit test, you can call maven like this:

mvn -Dtest=$TEST test

And I know there is a surefire configuration option called 'includes' that lets you set a path or file group but how can I test an 'includes' on the command line?

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970






Reply via email to