Skip to content

Conversation

@andreia-ferreira
Copy link
Collaborator

@andreia-ferreira andreia-ferreira commented Jan 5, 2026

Towards #3365

This PR updates the existing GitHub action files for running the Android tests.
The workflow defined in test-e2e.yml will run on every push to master, but it can also be triggered manually if needed. This workflow triggers the start-emulator action of ground-platform in order to start the Firebase emulator and then the submit-test on ground-android in order to start the Android emulator and run the tests in the e2eTest module.

While testing this workflow some changes had to be implemented in order to make the tests less flaky:

  • Replacing the logic to open the phone camera with Espresso intents. A new image was added to the assets in order to mock the flow
  • Remove the step to complete a 'draw area job'. The current implementation to drag the map and add points seems to be flaky so this was left out for now and can be improved and re-introduced later. At the moment all task types are being tested except for this one.

You can see how the workflow run would look like here: https://github.com/andreia-ferreira/ground-android/actions/runs/21182506715

PTAL @shobhitagarwal1612 @gino-m

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.02%. Comparing base (b2c08e5) to head (a64265b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #3429   +/-   ##
=========================================
  Coverage     70.02%   70.02%           
  Complexity     1604     1604           
=========================================
  Files           322      322           
  Lines          8646     8646           
  Branches        949      949           
=========================================
  Hits           6054     6054           
  Misses         2017     2017           
  Partials        575      575           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andreia-ferreira andreia-ferreira force-pushed the andreia/3365/update-github-actions branch from d4c9f2d to e6b279d Compare January 19, 2026 17:03
@andreia-ferreira andreia-ferreira marked this pull request as ready for review January 20, 2026 18:51
Copy link
Collaborator

@gino-m gino-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent progress! 🚀

@andreia-ferreira andreia-ferreira merged commit 6a9d8e8 into master Jan 23, 2026
8 checks passed
@andreia-ferreira andreia-ferreira deleted the andreia/3365/update-github-actions branch January 23, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants