0

is there a way to specify a pattern for android-unit-test? at the moment it seems to be *Test.class, but I would like it to be The*.class.

4

1 回答 1

0

这似乎可以解决问题:

tasks.withType(Test) {
    scanForTestClasses = false
    include "**/*The*.class" // whatever Ant pattern matches your test class files
}
于 2013-10-24T13:18:36.157 回答