ci(coverage): add pytest-cov with 75% branch-coverage floor#25
Merged
Conversation
Measured branch+statement coverage: 76% (cli.py has 0 coverage as it requires subprocess/invoke testing; transport.py error paths at 29%). Floor set to 75% — one point below measured — as a non-regression gate. - Add pytest-cov>=5.0.0 to dev extras in pyproject.toml - Add [tool.coverage.run] (branch=true, source=conclave) and [tool.coverage.report] (fail_under=75, show_missing=true) - Update test job to run with --cov=conclave --cov-report=term-missing --cov-fail-under=75 on every matrix leg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pytest-cov>=5.0.0to dev extras inpyproject.toml[tool.coverage.run](branch=true) and[tool.coverage.report](fail_under=75, show_missing=true)testlegs to run with--cov=conclave --cov-fail-under=75Coverage measurement
Measured branch+statement coverage on current codebase: 76% (66 tests, 790 statements, 214 branches)
Key gaps (not fixed in this PR — coverage improvements are Wave 2+ work):
cli.py: 0% — Typer CLI requires subprocess/CliRunner testing, not in scopetransport.py: 29% — real HTTP error paths; tests mock at the call_model levelFloor set to 75% — one point below measured — as a non-regression gate that will fail CI if coverage regresses.
Test plan
pytestlegs pass (66 tests + coverage >= 75%)ruffjob still passes