test_an_empty_view_says_so¶
Tests › tests/test_wiki_entities.py
What this test is for
Why it exists
ABSENCE IS STATED: no requirement and no recorded run are sentences, not blank tabs.
Given
- —
When
html = quick_view(_facts(reqs=(), replays=()))reqs = html.split('data-view-panel="reqs"', 1)[1].split("</section>", 1)[0]replay = html.split('data-view-panel="replay"', 1)[1].split("</section>", 1)[0]
Then
- ✓ reqs contains "No requirement names this function"
- ✓ replay contains "No recorded run"
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.
Build this wiki from the index · 7 of 400 steps
… 363 earlier steps
… 26 later steps
tests/test_wiki_entities.py:63 · its file's page
What it checks (2)
assert "No requirement names this function" in reqsnot attributedassert "No recorded run" in replaynot attributed
Where the product reaches it
build_wiki→_build_site→write_quick_views→quick_view(flow)
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-022 inferred
- REQ-DDB-WIKI-048 measured