New step: Android Build for UI Testing

Do you need to run an instrumentation test for your Android app? We have a new step for you.

Do you need to run instrumentation tests for your Android app? We have a new step for you.

undefined

This step will generate all the APKs you'll need to run instrumentation tests for your Android app: both an APK from your app and the belonging test APK.

The step will build your Android project via Gradle along with the appropriate AndroidTest variant.
E.g: gradlew ":app:assembleDemoDebug" ":app:assembleDemoDebugAndroidTest"

Inputs and outputs

Required inputs

  • project_location: The root directory of your Android project.
  • module: Set the module you want to build. To see your available modules, open your project in Android Studio and go to [Project Structure] and see the list on the left.
  • variant: Set the variant you want to build. To see your available variants, open your project in Android Studio and go to [Project Structure] and then the "variants" section.
  • apk_path_pattern: After the build, the step will find the APK files with the given pattern.

Required outputs

  • BITRISE_APK_PATH: Path of the generated (and copied) APK - after filtering.
  • BITRISE_TEST_APK_PATH: Path of the generated (and copied) test APK - after filtering.

Get Started for free

Start building now, choose a plan later.

Sign Up

Get started for free

Start building now, choose a plan later.