test_the_traceability_checklist_states_each_requirements_evidence

Tests › tests/test_wiki_site.py

passed Passed in the packaged run.

What this test is for

Why it exists

S4 (owner-approved, 2026-11-17): an IEEE 29148 traceability checklist — per requirement, which attributes it carries (rationale, verification method, parent) and whether it is implemented, tested and passing. Worded as SUPPORTING EVIDENCE, never as compliance: the page measures what a catalogue and an index show, and a standard's conformance is an assessor's call.

Verifies REQ-DDB-WIKI-011 REQ-DDB-WIKI-012 REQ-DDB-WIKI-013 REQ-DDB-WIKI-014 REQ-DDB-WIKI-015 REQ-DDB-WIKI-018 REQ-DDB-WIKI-020 REQ-DDB-WIKI-021 REQ-DDB-WIKI-022 REQ-DDB-WIKI-023 REQ-DDB-WIKI-025 REQ-DDB-WIKI-031 REQ-DDB-WIKI-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052

Given

  1. page = site["traceability.html"]
  2. def row(req: str) -> str: return page.split(f'<tr data-req="{req}"', 1)[1].split("</tr>", 1)[0]
  3. w1, x1 = row("REQ-W-001"), row("REQ-X-001")
→

When

  1. —
→

Then

  1. ✓ page contains "supports evidence"
  2. ✓ page.lower() does not contain "compliant"
  3. ✓ w1 contains 'data-check="rationale" class="ok"'
  4. ✓ w1 contains 'data-check="verification" class="ok"'
  5. ✓ x1 contains 'data-check="rationale" class="gap"'
  6. ✓ w1 contains 'data-check="implemented" class="ok"'
  7. ✓ page contains "1 of 3 carry a rationale"
  8. ✓ site["requirements.html"] contains 'href="traceability.html"'

tests/test_wiki_site.py:955 · its file's page

What it checks (6)

  1. assert "supports evidence" in page and "compliant" not in page.lower() not attributed
  2. assert ( 'data-check="rationale" class="ok"' in w1 and 'data-check="verification" class="ok"' in w1 ) not attributed
  3. assert 'data-check="rationale" class="gap"' in x1 not attributed
  4. assert 'data-check="implemented" class="ok"' in w1 not attributed
  5. assert "1 of 3 carry a rationale" in page not attributed
  6. assert 'href="traceability.html"' in site["requirements.html"], "the checklist is reachable" not attributed

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.

Requirements it verifies (15)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-011catalogunknown
REQ-DDB-WIKI-012catalogunknown
REQ-DDB-WIKI-013catalogunknown
REQ-DDB-WIKI-014catalogunknown
REQ-DDB-WIKI-015catalogunknown
REQ-DDB-WIKI-018catalogunknown
REQ-DDB-WIKI-020catalogunknown
REQ-DDB-WIKI-021catalogunknown
REQ-DDB-WIKI-022catalogunknown
REQ-DDB-WIKI-023catalogunknown
REQ-DDB-WIKI-025catalogunknown
REQ-DDB-WIKI-031catalogunknown
REQ-DDB-WIKI-044catalogunknown
REQ-DDB-WIKI-050catalogunknown
REQ-DDB-WIKI-052catalogunknown