test_each_view_carries_its_facts_and_links_the_full_view¶
Tests › tests/test_wiki_entities.py
What this test is for
Why it exists
The map focuses the node; source opens the activity; flows, reqs and tests link.
Given
- —
When
html = quick_view(_facts())
Then
- ✓ html contains 'href="map.html#n=save%40pkg%2Fstore.py"'
- ✓ html contains ">Storage<"
- ✓ html contains 'href="flow-main.html"'
- ✓ html contains 'href="flow-test_save.html"'
- ✓ html contains 'href="sym-pkg-store-py.html#s-save"'
- ✓ html contains "#act-s-save"
- ✓ html contains 'href="req-REQ-S-001.html"'
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 · 9 of 400 steps
… 225 earlier steps
… 133 steps between
… 25 later steps
tests/test_wiki_entities.py:45 · its file's page
What it checks (5)
assert 'href="map.html#n=save%40pkg%2Fstore.py"' in htmlobservesquick_viewviahtmlassert ">Storage<" in htmlobservesquick_viewviahtmlassert 'href="flow-main.html"' in html and 'href="flow-test_save.html"' in htmlobservesquick_viewviahtmlassert 'href="sym-pkg-store-py.html#s-save"' in html and "#act-s-save" in htmlobservesquick_viewviahtmlassert 'href="req-REQ-S-001.html"' in htmlobservesquick_viewviahtml
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 measured
- REQ-DDB-WIKI-048 measured