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.
No items found.
The Mobile DevOps Newsletter

Explore more topics

App Development

Learn how to optimize your mobile app deployment processes for iOS, Android, Flutter, ReactNative, and more

Bitrise & Community

Check out the latest from Bitrise and the community. Learn about the upcoming mobile events, employee spotlights, women in tech, and more

Bitrise Insights

Cache | Caching

Mobile App Releases

Learn how to release faster, better apps on the App Store, Google Play Store, Huawei AppGallery, and other app stores

Mobile DevOps

Learn Mobile DevOps best practices such as DevOps for iOS, Android, and industry-specific DevOps tips for mobile engineers

Mobile Testing & Security

Learn how to optimize mobile testing and security — from automated security checks to robust mobile testing and more.

Product Updates

Check out the latest product updates from Bitrise — Build Insights updates, product news, and more.

The Mobile DevOps Newsletter

Join 1000s of your peers. Sign up to receive Mobile DevOps tips, news, and best practice guides once every two weeks.