7

Is there a way to run instrumentation tests in Firebase Test Lab from Android Studio with Android Test Orchestrator enabled?

In my build.gradle I have all of the required statements:

android {
  defaultConfig {
   testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
   testInstrumentationRunnerArguments clearPackageData: 'true'
 }

  testOptions {
    execution 'ANDROID_TEST_ORCHESTRATOR'
  }
}

dependencies {
  androidTestImplementation 'com.android.support.test:runner:1.0.2'
  androidTestUtil 'com.android.support.test:orchestrator:1.0.2'
}

When I run tests on my own physical device, Orchestrator is working.

I was able to create a Run/Debug Configuration in Android Studio to run tests in Firebase Test Lab and they run successfully, but with no Orchestrator. Is there an option to enable Orchestrator in Android Studio so that it would also work in Firebase runs?

pavelicii
  • 1,590
  • 11
  • 21
  • 1
    The documentation suggests that it works if you run from the Firebase console. Have you tried that? https://firebase.google.com/docs/test-lab/android/firebase-console#new_instrumentation_tests_with_orchestrator – Doug Stevenson Jun 18 '18 at 14:53
  • @DougStevenson yes, I know about that and also about gcloud CLI with `--use-orchestrator` flag, which I tried successfully. But I'm curious about running it from Android Studio. I find it strange that seems like there is no such opportunity. – pavelicii Jun 19 '18 at 04:13
  • 1
    You can always file a feature request. https://firebase.google.com/support/contact/bugs-features/ – Doug Stevenson Jun 19 '18 at 04:22
  • 1
    I still have the same problem,how can I resolve this? – Mike76 Aug 16 '19 at 16:44
  • @Mike76 For now I don't know if this feature was implemented. I didn't file a feature request, but maybe this is the way for you. – pavelicii Aug 19 '19 at 08:58
  • 1
    any news on this question? – Henrique Vasconcellos Aug 22 '20 at 15:00

0 Answers0