我试图用这一行运行测试,但是这会启动所有测试:
./gradlew -DconnectedAndroidTest.single=LandingActivityTests connectedAndroidTest
如何启动单次测试?
您可以通过两个步骤运行单个android测试:
原文链接:https://www.f2er.com/javaschema/282328.html> ./gradlew installDebugAndroidTest
> adb shell am instrument -w -e class com.example.MyInstrumentationTest#testFoo com.example.test / android.support.test.runner.AndroidJUnitRunner
https://developer.android.com/tools/testing/testing_otheride.html