Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit Configuration custom specific instrumentation runner missing property

Android Studio 2.3 RC 1
Build #AI-162.3742087, built on February 16, 2017
JRE: 1.8.0_112-release-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

I have created my own custom test runner that I want to use to run my instrumentation espresso tests.

I have entered this in the build.gradle file:

testInstrumentationRunner "me.androidbox.busbymovies.CustomTestRunner"

I have created my espresso tests, but under Edit Configuration there is no property to change from the default InstrumentationRunner to my custom one.

enter image description here

In earlier configuration there used to be a property called:

Specific Instrumentation Runner (Optional)

When I run my tests I get the error: Cannot find any tests

Test running failed: Unable to find instrumentation info for: ComponentInfo{me.androidbox.busbymovies.debug.test/android.support.test.runner.AndroidJUnitRunner}

Before when I used to do this it was easy to switch to another instrumentation runner.

Many thanks for any suggestions on how to change your default test runner to your custom one,

like image 400
ant2009 Avatar asked Mar 01 '17 17:03

ant2009


1 Answers

I found the answer to my question.

My mistake was that I need to remove my Instrumented Test from the Edit Configuration and add a new one.

My build.gradle file was ok, and that is all you need to do to get this to work under the Android Studio 2.2.

like image 200
ant2009 Avatar answered Nov 02 '22 04:11

ant2009