Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.3 doesn't have Test Instrumentation specifier in UI

After updating to Android Studio 2.3 when I try to run some espresso tests I get the following error:

Test running failed: Unable to find instrumentation info for: ComponentInfo{com.example.android/android.test.InstrumentationTestRunner} Empty test suite.

This was easily fixable in the past where in the Run Configuration I could specify my own InstrumentationRunner. Now I can't seem to find this option so I can't really specify my runner class now.

Note that my build gradle does contain

defaultConfig {
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    resConfigs "en", "es"
}
like image 761
Adrian Olar Avatar asked Mar 06 '17 11:03

Adrian Olar


1 Answers

I ran into this problem this morning. I deleted the old run configuration (the one that was created before you specified the new runner via build.gradle). I re-ran the tests and the new runner was picked up by Android Studio.

like image 58
Emmanuel Avatar answered Oct 23 '22 05:10

Emmanuel