是否可以使用 Robolectric-Gradle 插件运行单个测试?
我试过这个:
./gradlew test -Dtest.single=testName
但它不起作用。
最佳答案
我自己也犯过同样的错误。这就是 jcandksolutions 插件的格式(至少我是这么用的)。 -Dtest.single=<test name>
RoboE-Gradle 插件不支持。
使用 --tests <test class name>
机制。这可以是 --tests <classpath of test>
或通配符 --tests *.*Test
关于android - Robolectric-Gradle 插件运行单一测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27550372/