Skip to content

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Oct 22, 2025

This PR extends the recently added mobile integration tests by adding Debug configuration alongside the existing Release configuration, to get a better understanding of the impact of:

Notes:

  • Previously, the Android integration test rebuilt the app for every test function to be able to replace {{SENTRY_DSN}} in MauiProgram.cs. With an increasing number of test functions and variations, the integration test becomes slower and slower. Thus, I changed the integration test app to simply default to http://127.0.0.1:8000, which is the default in the test server anyway. This way, we only need to build the Android app once with Release and Debug configurations, instead of 2x4=8 times.
  • The test app was fixed to not auto-restart on Android. Unexpected/accidental auto-restarts caused prolonged "Waiting for app..." loops and extra envelopes.
  • Client reports and automatic session tracking were disabled to ensure a predictable number of crash envelopes for test assertion purposes.

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (version6@a267d32). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             version6    #4666   +/-   ##
===========================================
  Coverage            ?   73.17%           
===========================================
  Files               ?      480           
  Lines               ?    17354           
  Branches            ?     3424           
===========================================
  Hits                ?    12699           
  Misses              ?     3806           
  Partials            ?      849           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

Had one small question but generally looks good!

@jpnurmi jpnurmi merged commit 382fa2e into version6 Oct 23, 2025
29 checks passed
@jpnurmi jpnurmi deleted the test/mobile-integration-debug branch October 23, 2025 10:58
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