-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Firebase Test Lab for our Android integration tests #737
Conversation
Visit the preview URL for this PR (updated for commit d3473f1): https://sharezone-test--pr737-use-firebase-test-la-4pw5vxsf.web.app (expires Thu, 24 Aug 2023 21:45:40 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
Currently, I'm unable to run the tests locally with out app. I was able to rum them locally with a new sample app but not with Sharezone. Used ./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../integration_test/app_test.dart -Pdart-define="..." Logs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the detailed steps in app/integration_test/README.md
.
Co-authored-by: Jonas Sander <[email protected]>
Overview
In an effort to stabilize our Continuous Integration (CI) process, this pull request replaces the use of the Android Emulator in GitHub Actions with Firebase Test Lab. Firebase Test Lab runs tests on a wide range of physical devices and provides more reliable results compared to the emulator. For this implementation, we have decided to use the development Firebase project (
sharezone-debug
) instead of the production project to avoid potential leaks of production service account credentials and to mitigate security risks.Example of a Successful Test Run
You can view a successful test run in the Firebase Test Lab console at the following link:
Successful Test Run
Advantages of Using Firebase Test Lab
Limitations
prod
flavor for testing due to difficulties encountered when setting up Android Device testing for thedev
flavor, which resulted in a "No test found." error.Demo
You can view a video demonstration of a test run on Firebase Test Lab here:
2023-08-17_18_27_09.547147_SZMW_Pixel2-30-en-portrait_video.mp4