Search code examples
androidandroid-testing

Android APK vs test APK?


I see Android creates both a "normal" and an androidTest APK inside the outputs folder?

i.e.

  • app-dev-debug.apk
  • app-dev-debug-androidTest.apk

Do I need to install both of these if I want to run tests on the device via the debug bridge for example?

Thanks


Solution

  • app-dev-debug is your app, the debug build. app-dev-debug-androidTest is the apk for your android instrumentation tests. They have to run on an Android device, so they need to be in an apk.