Summary
The CI pipeline measures test coverage but does not enforce a minimum threshold. This means coverage can silently regress without failing the build.
Proposed Approach
- Add
--cov-fail-under=80 to the pytest configuration in pyproject.toml under [tool.pytest.ini_options]
- This will cause CI to fail if coverage drops below 80%
Affected Files
Summary
The CI pipeline measures test coverage but does not enforce a minimum threshold. This means coverage can silently regress without failing the build.
Proposed Approach
--cov-fail-under=80to the pytest configuration inpyproject.tomlunder[tool.pytest.ini_options]Affected Files
pyproject.toml