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

test_many_requirement_pills_fold_and_each_links_its_page¶

Tests › tests/test_wiki_reqwhat.py

passed Passed in the packaged run.

What this test is for

Why it exists

UX review D-10: walls of REQ pills. Three or fewer inline; more fold under "N requirements"; each pill opens the requirement's own page, not an anchor on the index.

Given

  1. —
→

When

  1. few = _badges(["REQ-A-002", "REQ-A-001"])
  2. many = _badges([f"REQ-A-00{i}" for i in range(1, 6)])
→

Then

  1. ✓ few contains '<a class="req-badge" href="req-REQ-A-001.html">REQ-A-001</a>'
  2. ✓ few does not contain "<details"
  3. ✓ many.startswith('<details class="fold"><summary>5 requirements</summary>') holds

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 · 2 of 400 steps

… 224 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_wiki225. _site_cell → code225code226. flow_page → _badges226_badges227. _badges → page_of227page_of▶ test enters228. page_of → _key228_key229. flow_page → code229code230. flow_page → symbol_href230symbol_href

… 170 later steps

tests/test_wiki_reqwhat.py:104 · its file's page

What it checks (2)

  1. assert ( '<a class="req-badge" href="req-REQ-A-001.html">REQ-A-001</a>' in few and "<details" not in few ) observes _badges via few
  2. assert many.startswith('<details class="fold"><summary>5 requirements</summary>') observes _badges via many

Where the product reaches it

  • build_wiki → _build_site → flow_page → _badges (flow)

Call flow

test_many_requirement_pills_fold_and_each_links_its_page→_badges

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_many_requirement_pills_fold_and_each_links_its_page · 2 checks_badgespage_ofREQ-DDB-WIKI-022 · measured
Also reaches 1 requirement

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

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