coverage-badge
Generate coverage badges for Coverage.py.
Decision gist · record as of 2026-08-14
Yes, if you use Coverage.py and want a simple, low-friction way to generate coverage badges for README files or CI/CD workflows. The tool is stable, actively maintained, and has no known vulnerabilities. Install it only if you need basic coverage badge generation; if you need richer badge types (test counts, linting reports), consider genbadge instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a .coverage data file in the working directory, generated by running Coverage.py first.
- Low friction install with just two runtime dependencies (coverage and setuptools).
- Actively maintained with recent commits, though in maintenance mode with no new features planned.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2024-08-02 (742 days) · last repo commit 2026-04-13 · 204 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 355,388 downloads/mo, #7,290 on PyPI
Alternatives
Verify before relying
pip install coverage-badge
Run coverage first, then generate the badge:
coverage run -m pytest
coverage-badge -o coverage.svg- Whether the package works with all modern Python versions despite unspecified python_support.
- Current state of maintenance mode and likelihood of bug fixes vs. feature requests.
What it is and what it does
coverage-badge is a command-line tool that converts Coverage.py coverage data into an SVG badge graphic. It reads the .coverage file that Coverage.py generates and outputs a visual badge showing the coverage percentage, styled after shields.io templates. The tool is straightforward: run Coverage.py to collect metrics, then run coverage-badge to generate the badge SVG, either printing it to stdout or saving it to a file.
The package is in maintenance mode, meaning it receives occasional fixes but no new features. It depends on coverage and setuptools. For projects seeking richer badge support (test counts, flake8 reports, etc.), the maintainer recommends genbadge as an alternative. The badge itself uses color ranges to indicate coverage levels, with a plain-color mode available via command-line flag.
Use it for
- Display a live coverage percentage badge in a GitHub README to show project test coverage at a glance.
- Automate badge generation in CI/CD pipelines after running test suites with Coverage.py.
- Generate coverage badges for documentation sites or project dashboards that track code quality metrics.
- Create visual indicators of coverage trends across multiple project branches or releases.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Coverage.py and want a simple, low-friction way to generate coverage badges for README files or CI/CD workflows.
The tool is stable, actively maintained, and has no known vulnerabilities. Install it only if you need basic coverage badge generation; if you need richer badge types (test counts, linting reports), consider genbadge instead.
Install
coverage-badge on PyPI
Before you install
Low friction install with just two runtime dependencies (coverage and setuptools). Actively maintained with recent commits, though in maintenance mode with no new features planned.
Requires a .coverage data file in the working directory, generated by running Coverage.py first.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install coverage-badge
Run coverage first, then generate the badge:
coverage run -m pytest
coverage-badge -o coverage.svg
Verify before relying
- Whether the package works with all modern Python versions despite unspecified python_support.
- Current state of maintenance mode and likelihood of bug fixes vs. feature requests.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagescoveragesetuptools |
| Maintenance | Actively maintained 742 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 355,388 / month, #7,290 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: Testing |
Evidence: coverage_badge-1.1.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “coverage badge generator”
- coverage-badgeGenerates SVG coverage badges from Coverage.py data files, displaying…
- genbadgeGenerates SVG badges for CI/CD tools and test frameworks that don't…
- anybadgeGenerates SVG badge images with configurable thresholds and colors,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also anybadge · genbadge · docstr-coverage · covdefaults · coveralls · django-coverage-plugin · coverage_enable_subprocess · coverage-conditional-plugin · resvg_py