test_the_committed_cli_surface_is_current¶
Tests › tests/test_cli_surface.py
What this test is for
Why it exists
A REMOVED OR RENAMED verb or flag fails here and is a major bump; an ADDED one is additive — regenerate.
Given
committed = json.loads((Path(__file__).parent.parent / "docs" / "cli-surface.json").read_text())
When
cli_surface()
Then
- ✓ committed equals cli_surface()
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
`main` (clew/guard/main.py) · 7 of 357 steps
… 4 earlier steps
… 341 later steps
tests/test_cli_surface.py:18 · its file's page
What it checks (1)
assert committed == cli_surface(), ( "the covered CLI changed — regenerate with " "`.venv/bin/python -m clew.cli_surface > docs/cli-surface.json`; a removed or renamed " "verb or flag is a major bump" )observescli_surface
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Also reaches 8 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 measured
- REQ-DDB-CLI-002 measured
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-WIKI-001 measured
- REQ-DDB-WIKI-035 measured
- REQ-DDB-WIKI-038 measured
- REQ-DDB-WIKI-042 measured
- REQ-DDB-WIKI-043 measured