test_a_large_requirement_is_summarised_by_result¶
Tests › tests/test_wiki_reqdiagram.py
What this test is for
Why it exists
Above it: buckets with counts, a pointer to the table, and a bounded size.
Given
- —
When
svg = evidence_svg(_row(553))
Then
- ✓ svg does not contain 'class="test"'
- ✓ svg contains ">552 passed</text>"
- ✓ svg contains ">1 failed</text>"
- ✓ svg contains 'data-edge="load→passed"'
- ✓ svg contains "tests table below"
- ✓ len(svg) is less than 4000
tests/test_wiki_reqdiagram.py:38 · its file's page
What it checks (4)
assert 'class="test"' not in svgobservesevidence_svgviasvgassert ">552 passed</text>" in svg and ">1 failed</text>" in svgobservesevidence_svgviasvgassert 'data-edge="load→passed"' in svg and "tests table below" in svgobservesevidence_svgviasvgassert len(svg) < 4000, len(svg)observesevidence_svgviasvg
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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-022 measured