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.
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,
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With