Issue
I'm running instrumentation test in Android Studio with Run Configuration defined as below (don't mind warning):

So this is invoking test suit for a specific class. How can I achieve this with command line, I guess using ./gradlew command ?
Solution
As stated in the AndroidTestingBlueprint you can use the android.testInstrumentationRunnerArguments.class property:
./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.ui.espresso.EspressoTest
Answered By - rciovati
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.