connectedAndroidTest on multiple emulators
问题 Background I want to run my Android Instrumented tests on Jenkins on different emulators. Say I have 100 tests and 4 emulators, I want to run 25 tests on each. I perform ./gradlew connectedDebugAndroidTest in Jenkins Pipeline's parallel for 4 emulators stage('Instrumented Tests') { parallel( emu1: { runInstrumentedTestOnEmu(...) }, emu2: { runInstrumentedTestOnEmu(...) } ... ) } connectedDebugAndroidTest will spawn other commands in order to setup the environment for running instrumented