clew
  • Requirements
  • Flows
  • Tests
  • Change impact
  • Map
  • Architecture
  • Docs
  • SBOM

test_each_view_carries_its_facts_and_links_the_full_view¶

Tests › tests/test_wiki_entities.py

passed Passed in the packaged run.

What this test is for

Why it exists

The map focuses the node; source opens the activity; flows, reqs and tests link.

Given

  1. —
→

When

  1. html = quick_view(_facts())
→

Then

  1. ✓ html contains 'href="map.html#n=save%40pkg%2Fstore.py"'
  2. ✓ html contains ">Storage<"
  3. ✓ html contains 'href="flow-main.html"'
  4. ✓ html contains 'href="flow-test_save.html"'
  5. ✓ html contains 'href="sym-pkg-store-py.html#s-save"'
  6. ✓ html contains "#act-s-save"
  7. ✓ 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

callercallercallercallerclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesloop (line 290)loopbuild_wiki226. flow_page → _badges226_badges227. _badges → page_of227page_of228. page_of → _key228_key229. flow_page → code229code230. flow_page → symbol_href230symbol_href

… 133 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesloop (line 193)looploop (line 195)loopopt (line 202)optbuild_wiki364. modal → modal_template364modal_template365. write_quick_views → quick_view365quick_view366. quick_view → _map366_map▶ test enters367–373. quick_view → _list367_list +6 more374. write_quick_views → plural374plural375. _build_site → find_decisions375find_decisions

… 25 later steps

tests/test_wiki_entities.py:45 · its file's page

What it checks (5)

  1. assert 'href="map.html#n=save%40pkg%2Fstore.py"' in html observes quick_view via html
  2. assert ">Storage<" in html observes quick_view via html
  3. assert 'href="flow-main.html"' in html and 'href="flow-test_save.html"' in html observes quick_view via html
  4. assert 'href="sym-pkg-store-py.html#s-save"' in html and "#act-s-save" in html observes quick_view via html
  5. assert 'href="req-REQ-S-001.html"' in html observes quick_view via html

Where the product reaches it

  • build_wiki → _build_site → write_quick_views → quick_view (flow)

Call flow

test_each_view_carries_its_facts_and_links_the_full_view→quick_view→_facts

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.

test_each_view_carries_its_facts_and_links_the_full_view · 5 checksquick_view_reqspage_ofREQ-DDB-WIKI-022 · measuredquick_viewREQ-DDB-WIKI-048 · measured
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.

  • REQ-DDB-WIKI-022 measured
  • REQ-DDB-WIKI-048 measured
clew Generated by clew wiki from the repository's index