pycoverage
Combine Python coverage files from previous test runs and generate coverage reports, a badge, and an optional timeline. A project can enforce a minimum coverage value.
For programmatic usage, see coverage.
Default run name: coverage
cikit pycoverage --coverage-dir .coverage-data --min-coverage 85
Arguments and options
--coverage-dir PATH: Directory containing parallel Python coverage data files (required).--min-coverage PERCENT: Required coverage from 0 to 100 (default: no threshold).--timeline-limit N: Maximum history entries;0disables the timeline.
Requires: Python coverage and coverage data collected during pytest.
Results: Combined coverage reports, coverage badge, optional timeline, and RST report.
Python Test Workflow
Initialize coverage collection once with pytest_init, then
execute each suite with pytest using a shared coverage directory
and distinct logical run names. Combine the results with pycoverage:
cikit pytest_init --coverage-dir build/coverage
cikit --name unittests pytest tests/unittests --coverage-dir build/coverage
cikit --name systemtests pytest tests/systemtests --coverage-dir build/coverage
cikit pycoverage --coverage-dir build/coverage --min-coverage 80