Test just a library, not a whole app on Bitrise!

Learn how to test an Android library on Bitrise's Virtual Device Testing.

For an instrumentation test on Bitrise Virtual Device Testing, you'll need two APKs, as it seems to be a Firebase TestLab constraint:

  • app
  • test

But if you are developing only a library and not a whole app, you won't have both, only the test one. Trying to use the test APKs in both inputs (APK Path and Test APK Path) is futile as it'll return the following error message:

Failed to get test status, error: Failed to get test status: INVALID(TEST_SAME_AS_APP) 
Copy code

To be able to test your library, you'll need to use the regular test APK which includes the library, and as a workaround, generate a dummy APK and set that as the app APK. Basically, any APK will do, but if you need one, check out our sample apps on GitHub. 🙂

Happy testing!

Learn how to test an Android library on Bitrise's Virtual Device Testing.

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

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.