Create a gist now

Instantly share code, notes, and snippets.

Gradle rule to execute arbitrary groups of tests in isolation
* Add a rule that supports executing tests based on a series of comma delimited patterns(ant glob patterns).
tasks.addRule("Pattern: testMulti<Name>,<Name2> will test **/<Name>.class,**/<Name2>.class") {String taskName ->
if (taskName.startsWith("testMulti"))
test.includes = taskName.substring(9).split(',').collect {"**/${it}.class"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment