执行我们的一些仪器测试需要很长时间。因此,当我运行所有其他仪器测试时,我不想运行它们gradle connectedAndroidTest
.
为什么我不注释这些测试@Ignore http://junit.sourceforge.net/javadoc/org/junit/Ignore.html?因为我想稍后使用它们来运行它们adb shell
如上所述here. https://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html像这样:
运行除特定类中的测试之外的所有测试:adb shell am
仪器-w -e notClass com.android.foo.FooTest
com.android.foo/android.support.test.runner.AndroidJUnitRunner
如果我将这些测试标记为忽略并编译它们,则根本不可能执行它们。
是否可以修改connectedAndroidTest
或其他一些任务来达到我的需要?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)