Skip to content

ASA Go: Android tests and coverage uploads#5199

Open
conbrad wants to merge 10 commits intomainfrom
task/android-test-pipeline-and-docs
Open

ASA Go: Android tests and coverage uploads#5199
conbrad wants to merge 10 commits intomainfrom
task/android-test-pipeline-and-docs

Conversation

@conbrad
Copy link
Collaborator

@conbrad conbrad commented Mar 9, 2026

  • Extract repeated Node.js/keycloak/asa-go setup into a shared composite action (.github/actions/asa-go-setup)
  • Restructure integration workflow into three parallel jobs: js_test, ios_test, android_test
  • Add JaCoCo coverage to Android (asa-go and keycloak plugins) and upload all coverage (JS, iOS .xcresult, Android XML) to Codecov with
    per-platform flags
  • Update mobile/asa-go/README.md with correct local build order (keycloak first), platform-specific cap sync, and CI workflow documentation

Closes #5182

Test Links:

Landing Page
MoreCast
Percentile Calculator
C-Haines
FireCalc
FireCalc bookmark
Auto Spatial Advisory (ASA)
HFI Calculator
SFMS Insights
Fire Watch

@conbrad conbrad requested review from brettedw and dgboss March 9, 2026 21:59
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 9, 2026

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.55%. Comparing base (2bdfad6) to head (9b1bc60).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5199      +/-   ##
============================================
- Coverage     68.90%   68.55%   -0.35%     
- Complexity        0       26      +26     
============================================
  Files           392      461      +69     
  Lines         16373    17992    +1619     
  Branches       1846     2095     +249     
============================================
+ Hits          11281    12335    +1054     
- Misses         4508     5003     +495     
- Partials        584      654      +70     
Flag Coverage Δ
android 24.68% <ø> (?)
asa_go 74.90% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

files: |
./mobile/asa-go/android/app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
./mobile/keycloak/android/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
flags: android
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's still some things to sort out with codecov. I tried carrying forward asa-go tests in codecov.yml, which kind of worked but PRs don't always reference the coverage in the 'flags' section for some reason

https://app.codecov.io/gh/bcgov/wps/flags

I think all asa-go tests need to be carried forward because they aren't run on every PR

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.

ASA Go: Cutting a Release with what we already have on March 5, 2026

2 participants