Java 已连接检查/已连接仪器测试am仪器参数

Java 已连接检查/已连接仪器测试am仪器参数,java,android,gradle,instrumentation,Java,Android,Gradle,Instrumentation,是否可以将connectedInstrumentTest配置为包含/排除带有/不带注释的测试 类似于 adb shell am instrument -w -e annotation com.android.foo.MyAnnotation com.android.foo/android.test.InstrumentationTestRunner 类似地,是否可以指定要执行的测试列表?相当于 adb shell am instrument -w -e class com.android.fo

是否可以将
connectedInstrumentTest
配置为包含/排除带有/不带注释的测试

类似于

adb shell am instrument -w -e annotation com.android.foo.MyAnnotation com.android.foo/android.test.InstrumentationTestRunner
类似地,是否可以指定要执行的测试列表?相当于

adb shell am instrument -w -e class com.android.foo.FooTest,com.android.foo.TooTest com.android.foo/android.test.InstrumentationTestRunner