We need to analyze the test coverage of the existing codebase with Pytest-cov and set up a process to verify test coverage for all new code changes.
Requirements
Coverage Analysis
CI Integration
Best Practices
Recommendations
- Minimum coverage: Start with a "report only" mode, then incrementally raise the enforcement threshold.
- Coverage reporting: Prefer both HTML and terminal reports for maximum developer convenience.
Testing
Definition of Done
We need to analyze the test coverage of the existing codebase with Pytest-cov and set up a process to verify test coverage for all new code changes.
Requirements
Coverage Analysis
requirements.txtandpytest.inias necessary).CI Integration
Best Practices
Recommendations
Testing
pytest --cov) produces an accurate coverage report.Definition of Done