Description
jacoco-report is a GitHub Action that publishes a JaCoCo coverage report as a comment on a pull request. The comment shows coverage for the changed files, so reviewers can see the coverage of just the code in a pull request. You can set a pass percentage for modified modules, changed files and the overall project, each with a default of 80 percent. The paths input takes a comma-separated list of JaCoCo XML files and supports wildcard patterns. The action can post as a pull request comment, a workflow summary, or both, and an update-comment option can replace the earlier report instead of adding a new one. A title can be set for the comment. The README explains the permissions needed when posting comments, which are pull-requests write (or issues write) and contents read, and it includes an example workflow file to add to .github/workflows. The token input defaults to the workflow's GitHub token.…
Highlights
- JaCoCo report as a pull request comment
- Coverage for changed lines and files
- Pass thresholds for overall and changed code
- Post to PR comment, summary or both
- Update the previous comment
Ratings & Reviews
No ratings yet
Be the first to rate Jacoco Report.
People also visit
Jacoco Report FAQ
What does this action do?
It reads JaCoCo XML coverage files and posts a coverage report as a comment on a pull request.
How do I set it up?
Add a workflow file under .github/workflows and give the job pull-requests write and contents read permissions, as the README describes.
Can it fail a build?
Yes. You set minimum coverage for the overall project and for changed lines, with a default of 80 percent each.
Can it update an old comment?
Yes. With update-comment set to true, it replaces the previous coverage comment. The README says this needs a title.
What are the best Jacoco Report alternatives?
Popular alternatives to Jacoco Report include OtterWise Code Coverage Reporting, Test Reporter and Publish Unit Test Result Action. See all Jacoco Report alternatives














