-
Notifications
You must be signed in to change notification settings - Fork 102
Update firebase emulator data and add github action for Android e2e tests #2327
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
Update firebase emulator data and add github action for Android e2e tests #2327
Conversation
482c9c4 to
eca4296
Compare
a4cff8e to
feb6b81
Compare
…o-firebase-emulator' into andreia/3365/add-e2e-test-data-to-firebase-emulator
|
Hi @andreia-ferreira What's the status of this issue? Are you blocked on anything? Also, is there a place where we outline how these "golden master" tests will work, and what we need to do true e2e testing? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2327 +/- ##
=======================================
Coverage 58.41% 58.41%
=======================================
Files 115 115
Lines 2888 2888
Branches 425 425
=======================================
Hits 1687 1687
Misses 1144 1144
Partials 57 57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@gino-m my main challenge right now is getting the CI to run the Android emulator tests correctly alongside the Firebase emulator from this repo. The action that starts the Firebase emulator seems to be working well, so no blockers on this side and I've marked the PR as ready, thanks for checking!
Not yet, I haven't added that anywhere yet. But since the E2E flow will start from the android repo I can add the documentation there. |
Would it be easier to use https://firebase.google.com/docs/test-lab instead of standing up an emulator?
Can we set it up so that the same GitHub Action is run from both repos? The action would check out most codebases at a particular commit, build, and run. Wdyt? |
with our current setup, working with a local Firebase emulator, it wouldn't be possible I believe
That would be ideal, but this PR adds static test data for Android, it's not generated dynamically yet so triggering the workflow on this repo wouldn't do much right now. Btw, I added some documentation in the Draft PR I'm working on the Android side: https://github.com/google/ground-android/pull/3429/files#diff-bfcda924045749dc64968acb3b1a38887b094a6a793d11cd7fe2bc4a42bb8d23 |
That sounds right. In a follow-up, perhaps at the end of integration tests (I wouldn't call them e2e at this point), at the end of tests we write the data back to the repo so that the other repo can use it as input? I.e., changes to
Ok please disregard for now. |
good one, I’ll add a step in the upcoming github action on ground-android to export the Firebase emulator data after the test survey is filled, so it can be reused or inspected later |
Towards: google/ground-android#3365
To make Android end to end tests reliable and self-contained, we need to pre-populate the Firebase emulator with a dedicated test survey. This PR adds a new folder with this test data
test-androidand a new commandnx start-android-test-datato launch an emulator based on this data.A separate github action was also added in order to run this from the ground-android repo. This action will be used by a workflow hosted in the
ground-androidrepo