ocm-mcp-server - unit tests & coverage
Verdict: 🟢 ALL PASSING · generated 2026-07-29 02:25:13 UTC · Python 3.14.0, all cluster interactions mocked
| Tests | Passed | Failed | Skipped | Runtime | Statement coverage | Branch coverage |
|---|---|---|---|---|---|---|
| 387 | 387 | 0 | 0 | 1.73s | 100.0% | 100.0% |
Reproduce locally with
make test-report- runs the full suite with branch coverage and refreshes this page, the coverage badge, and the browsable HTML coverage report in.unit-report/htmlcov/. CI enforces a 95% floor (--cov-fail-under) on every push and pull request.
Coverage by module #
| Module | Statements | Missed | Branches | Missed | Coverage |
|---|---|---|---|---|---|
__init__.py |
1 | 0 | 0 | 0 | 100.0% |
approvals.py |
204 | 0 | 54 | 0 | 100.0% |
cli.py |
178 | 0 | 40 | 0 | 100.0% |
config.py |
83 | 0 | 12 | 0 | 100.0% |
filelock.py |
20 | 0 | 2 | 0 | 100.0% |
guardrails.py |
159 | 0 | 96 | 0 | 100.0% |
k8s.py |
41 | 0 | 6 | 0 | 100.0% |
metrics.py |
44 | 0 | 8 | 0 | 100.0% |
ocm.py |
497 | 0 | 166 | 0 | 100.0% |
server.py |
389 | 0 | 62 | 0 | 100.0% |
tracing.py |
210 | 0 | 62 | 0 | 100.0% |
Total: 1826 statements, 508 branches - 100.0% covered.
See also: end-to-end fleet test results - a real kind fleet driven through every tool, the approval gate, and a break/fix loop.
Source: wiki/Unit-Test-Results.md — this page is generated from it, so edit the markdown, not the site.