test_an_empty_view_says_so

Tests › tests/test_wiki_entities.py

passed Passed in the packaged run.

What this test is for

Why it exists

ABSENCE IS STATED: no requirement and no recorded run are sentences, not blank tabs.

Given

  1. —
→

When

  1. html = quick_view(_facts(reqs=(), replays=()))
  2. reqs = html.split('data-view-panel="reqs"', 1)[1].split("</section>", 1)[0]
  3. replay = html.split('data-view-panel="replay"', 1)[1].split("</section>", 1)[0]
→

Then

  1. ✓ reqs contains "No requirement names this function"
  2. ✓ 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

callercallercallercallerother 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–372. quick_view → _list367_list +5 more373. _reqs → page_of373page_of374. write_quick_views → plural374plural

… 26 later steps

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

What it checks (2)

  1. assert "No requirement names this function" in reqs not attributed
  2. assert "No recorded run" in replay not attributed

Where the product reaches it

  • build_wiki → _build_site → write_quick_views → quick_view (flow)

Call flow

test_an_empty_view_says_so→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_an_empty_view_says_so · 2 checksquick_view_reqspage_ofREQ-DDB-WIKI-022 · inferredquick_viewREQ-DDB-WIKI-048 · measured
Also reaches 2 requirements

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