Skip to content

Add JaCoCo coverage reporting and Codecov integration#90

Merged
patrickrb merged 2 commits into
patrickrb:devfrom
jonstacks:issue-62
Jun 4, 2026
Merged

Add JaCoCo coverage reporting and Codecov integration#90
patrickrb merged 2 commits into
patrickrb:devfrom
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

@patrickrb
Copy link
Copy Markdown
Owner

Hey, thanks for the PR. I want to merge this but it needs to be created against dev first.

- 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>
@jonstacks jonstacks changed the base branch from main to dev June 4, 2026 18:19
@jonstacks
Copy link
Copy Markdown
Author

@patrickrb, I've rebased this against dev and changed the base branch of the PR

@jonstacks
Copy link
Copy Markdown
Author

I think the issue was that I changed the base after I pushed up the rebase. 🤞 its good to go now....I think

Comment thread .github/workflows/build-release.yml
@patrickrb patrickrb merged commit 7c2f251 into patrickrb:dev Jun 4, 2026
2 checks passed
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

2 participants