Skip to content

@kellyrob99 /gist:1026097
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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"))
{
tasks.add(taskName).dependsOn(test)
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
Something went wrong with that request. Please try again.