Install GoogleInstrumentationTestRunner for AndroidStudio

My test runs are done using GoogleInstrumentationTestRunner when running

gradle connectedCheck

but inside AndroidStudio I have to set this every time in the configuration. In my build.gradle I have an android / defaultConfig section

testInstrumentationRunner "com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner"

but somehow AndroidStudio 0.5.9 does not select this.

code here: https://github.com/ligi/PassAndroid

+4
source share
2 answers

In Android Studio , you can install by default using:

Run -> Edit Configurations -> Defaults -> Android Tests
+2
source

You also need to enter the test runner class in the test configuration in Android studio.

Android Studio, com.google.android.apps.common.testing.testrunner.GoogleInstrumentationTestRunner " ()".

-1

Source: https://habr.com/ru/post/1543422/


All Articles