Problem
We currently lack integrated coverage reporting and clear module-level targets, which makes it hard to track progress and prevent regressions.
Scope
- Add
pytest-cov and coverage config
- Generate and record baseline coverage
- Add CI coverage checks
- Track improvements per module
Acceptance Criteria
Initial Module Targets
Implementation Plan
Phase 1: Baseline
- Add
pytest-cov
- Run baseline coverage and capture gaps by module
Phase 2: Enforcement
- Add CI coverage workflow
- Enforce initial
--cov-fail-under threshold
- Document contributor commands in README/CONTRIBUTING
Problem
We currently lack integrated coverage reporting and clear module-level targets, which makes it hard to track progress and prevent regressions.
Scope
pytest-covand coverage configAcceptance Criteria
pytest-covis configureduv run pytest --cov=lyricsgenius --cov-report=term-missing --cov-report=htmlworksInitial Module Targets
lyricsgenius/api/>= 90%lyricsgenius/types/>= 90%lyricsgenius/genius.py>= 85%lyricsgenius/utils.py>= 80%lyricsgenius/auth.py>= 85%Implementation Plan
Phase 1: Baseline
pytest-covPhase 2: Enforcement
--cov-fail-underthreshold