Member-only story
Run Firebase TestLab test on release build
By default FTL tests run the debug build. To run Firebase Test Lab test on the release build we need to make a small change inside build.gradle.
Steps:
1. Change to Build type “Release”
2. Inside build.gradle add “ testBuildType “release””
{
android {
testBuildType "release"
}
}
3. It will add the directory (/AndroidTest) to your release build path
4. Clean and build
5. Run Android tests
6. The Android tests will run on the release build, and will generate the release test APKs:
- app-release-androidTest.apk
- app-release.apk (sign with release key)
7. Go to firebase Test lab. And upload the TestAPK and the Release APK.
8. Run tests. They pass :)
FTL test run:
Thanks for spending your time reading it and let me know if I’m wrong somewhere or if there’s something that could do differently or better. I’m open to your feedback 🙌🏻
-Andres