Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在android单元测试中为测试指定文件名模式?_Android_Unit Testing_Testing_Android Testing - Fatal编程技术网

如何在android单元测试中为测试指定文件名模式?

如何在android单元测试中为测试指定文件名模式?,android,unit-testing,testing,android-testing,Android,Unit Testing,Testing,Android Testing,有没有办法为android单元测试指定模式?目前看来是*Test.class,但我希望是这个*.class似乎起到了作用: tasks.withType(Test) { scanForTestClasses = false include "**/*The*.class" // whatever Ant pattern matches your test class files }

有没有办法为android单元测试指定模式?目前看来是
*Test.class
,但我希望是
这个*.class

似乎起到了作用:

tasks.withType(Test) {
    scanForTestClasses = false
    include "**/*The*.class" // whatever Ant pattern matches your test class files
}