TL;DR
I just released jacoco-badge-generator 2.10.0, which can be run as a GitHub Action or as a command-line utility as part of CI/CD workflows for Java projects, as well as for projects in other JVM languages such as Kotlin, to parse JaCoCo test coverage reports, generate instructions coverage and branches coverage badges for project READMEs, serve as pull-request checks (e.g., validate minimum coverage thresholds), among other functionality.
Changelog 2.10.0 - 2023-09-04
Added
- Option to suppress workflow job summary in GitHub Actions Mode.
Dependencies
- Bump cicirello/pyaction from 4.19.0 to 4.22.0.
More Information
Please consider starring the jacoco-badge-generator's GitHub repository:
cicirello / jacoco-badge-generator
Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions
jacoco-badge-generator
Check out all of our GitHub Actions: https://actions.cicirello.org/
About
The jacoco-badge-generator can be used in one of two ways: as a GitHub Action or as a command-line utility (e.g., such as part of a local build script). The jacoco-badge-generator parses a jacoco.csv
from a JaCoCo coverage report, computes coverage percentages from JaCoCo's Instructions and Branches counters, and generates badges for one or both of these (user configurable) to provide an easy to read visual summary of the code coverage of your test cases. The default behavior directly generates the badges internally with no external calls, but the action also provides an option to instead generate Shields JSON endpoints. It supports both the basic case of a single jacoco.csv
, as well as multi-module projects in which case the action can produce coverage badges from the combination of…
For more information, see the project webpage and my earlier posts about the jacoco-badge-generator here on DEV:
Post with general information and example GitHub Action workflows:

JaCoCo coverage badges, PR coverage checks, and PR coverage comments, from GitHub Actions
Vincent A. Cicirello ・ Nov 29 '21
Post about CLI mode:

The jacoco-badge-generator GitHub Action is now also available as a CLI tool from PyPI
Vincent A. Cicirello ・ Jul 8 '22
Post with example multi-module workflows:

JaCoCo Coverage Badges for Multi-Module Projects in GitHub Actions
Vincent A. Cicirello ・ May 25
Where You Can Find Me
Follow me here on DEV and on GitHub:
Or visit my website:
Top comments (0)