Coverage Badge Creator
A zero-dependency GitHub Action and npm CLI that reads your test coverage report and inserts live SVG badges into your README automatically. Works for any language — Python, Go, Java, Ruby, JavaScript, TypeScript, .NET and more.
How it works
- Add a
$coverage$ token anywhere in your README.
- Run your tests to produce a coverage report.
- Run the Action (or npm script) — the token is replaced with a live badge.
Supported formats
- istanbul — Jest, NYC, Istanbul (default)
- lcov — Go, C/C++, Ruby, Python (lcov reporter)
- cobertura — Java (JaCoCo), Python (coverage xml), .NET
- coverage-py — Python (coverage json)
GitHub Action quickstart
- uses: H3nSte1n/coverage-badge-creator@v2
with:
format: istanbul
commit: true
npm quickstart
npm install --save-dev coverage-badge-creator
Links