Skip to content

Add JaCoCo coverage reporting and Codecov integration#90

Open
jonstacks wants to merge 3 commits into
patrickrb:mainfrom
jonstacks:issue-62
Open

Add JaCoCo coverage reporting and Codecov integration#90
jonstacks wants to merge 3 commits into
patrickrb:mainfrom
jonstacks:issue-62

Conversation

@jonstacks
Copy link
Copy Markdown

Resolves #62

  • Add JaCoCo plugin (v0.8.12) to ft8cn/app/build.gradle for test coverage
  • Configure jacocoTestReport task with HTML/XML output
  • Exclude generated files (BuildConfig, R.class, Test classes, Compose, etc.)
  • Update test job to run on PR and main branch pushes (not just PRs)
  • Generate coverage reports and upload to GitHub Actions artifacts
  • Integrate Codecov action with CODECOV_TOKEN secret
  • Codecov upload continues on error (doesn't fail builds)

For the goal of being able to track test coverage over time, I set up Codecov on my fork I was using for testing. It is free for open source projects and has a good UI for viewing what needs test coverage. Example: https://app.codecov.io/gh/jonstacks/FT8AF

jonstacks and others added 3 commits June 2, 2026 17:08
- Add JaCoCo plugin (v0.8.12) to ft8cn/app/build.gradle for test coverage
- Configure jacocoTestReport task with HTML/XML output
- Exclude generated files (BuildConfig, R.class, Test classes, Compose, etc.)
- Update test job to run on PR and main branch pushes (not just PRs)
- Generate coverage reports and upload to GitHub Actions artifacts
- Integrate Codecov action with CODECOV_TOKEN secret
- Codecov upload continues on error (doesn't fail builds)

Resolves patrickrb#62

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fix comment formatting for clarity in build step.
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.

CI: add JaCoCo code coverage reporting

1 participant