test_wiki_check_prints_ears_notes_without_failing_on_them¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
S9: never a gate. `clew wiki check` prints a note for each requirement in no EARS pattern, on stderr, and its exit code is exactly what the problems alone decide.
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
root, db = repo
When
rc = wiki_main(["check", "--repo-root", str(root), "--index", str(db)])out, err = capsys.readouterr()check_wiki(root, db)
Then
- ✓ err contains "note: REQ-W-001 is in no EARS pattern:"
- ✓ out does not contain "note:"
- ✓ rc equals 1 if check_wiki(root, db) else 0
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 · 46 of 400 steps
… 6 steps between
… 111 steps between
… 2 steps between
… 215 later steps
1 more
- Look up one name: everything the index holds about it · 7 of 226 steps
tests/test_wiki_site.py:988 · its file's page
What it checks (3)
assert "note: REQ-W-001 is in no EARS pattern:" in errnot attributedassert "note:" not in out, "notes are not problems"not attributedassert rc == (1 if check_wiki(root, db) else 0)observescheck_wiki
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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.
and 90 more requirement paths, listed below.
Requirements it verifies (15)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | catalog | 1 of 1: sphinx_settings |
| REQ-DDB-WIKI-012 | catalog | 6 of 6: charts_block, donut, group_of, group_table and 2 more |
| REQ-DDB-WIKI-013 | catalog | 3 of 3: burndown, roadmap_milestones, series |
| REQ-DDB-WIKI-014 | catalog | 2 of 2: flow_page, step_data |
| REQ-DDB-WIKI-015 | catalog | 2 of 3: declared_catalog, impact_path |
| REQ-DDB-WIKI-018 | catalog | 1 of 1: entry_point_flows |
| REQ-DDB-WIKI-020 | catalog | 2 of 2: modal, modal_template |
| REQ-DDB-WIKI-021 | catalog | 3 of 3: minimap_html, web_html, web_page |
| REQ-DDB-WIKI-022 | catalog | 16 of 21: _evidence_line, _index_requirements, _summary_svg, _what and 12 more |
| REQ-DDB-WIKI-023 | catalog | 1 of 1: flows_index |
| REQ-DDB-WIKI-025 | catalog | 4 of 6: commit_published, page_for, symbol_href, symbol_pages |
| REQ-DDB-WIKI-031 | catalog | 4 of 5: decisions_page, doc_kind, find_decisions, parse_adr |
| REQ-DDB-WIKI-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | 1 of 1: flow_page |
| REQ-DDB-WIKI-052 | catalog | 1 of 1: tests_index |
Also reaches 88 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 inferred
- REQ-DDB-CLI-002 inferred
- REQ-DDB-CONFIG-001 inferred
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-CONFIG-004 inferred
- REQ-DDB-CONFIG-005 inferred
- REQ-DDB-CONFIG-006 inferred
- REQ-DDB-CONFIG-007 inferred
- REQ-DDB-CONFIG-009 inferred
- REQ-DDB-GUARD-012 measured
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-027 inferred
- REQ-DDB-INDEX-001 inferred
- REQ-DDB-INDEX-002 inferred
- REQ-DDB-INDEX-003 inferred
- REQ-DDB-INDEX-004 inferred
- REQ-DDB-INDEX-005 inferred
- REQ-DDB-INDEX-006 inferred
- REQ-DDB-INDEX-007 inferred
- REQ-DDB-INDEX-008 inferred
- REQ-DDB-INDEX-009 inferred
- REQ-DDB-INDEX-010 inferred
- REQ-DDB-INDEX-011 inferred
- REQ-DDB-MCP-001 inferred
- REQ-DDB-PIPE-001 inferred
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-004 inferred
- REQ-DDB-PIPE-005 inferred
- REQ-DDB-PIPE-006 inferred
- REQ-DDB-PIPE-007 inferred
- REQ-DDB-PIPE-008 inferred
- REQ-DDB-PIPE-009 inferred
- REQ-DDB-PIPE-010 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-PIPE-013 inferred
- REQ-DDB-PIPE-014 inferred
- REQ-DDB-PIPE-015 inferred
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 inferred
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-011 inferred
- REQ-DDB-SCHEMA-001 inferred
- REQ-DDB-SCHEMA-002 inferred
- REQ-DDB-SCHEMA-003 inferred
- REQ-DDB-SCHEMA-004 inferred
- REQ-DDB-SCHEMA-005 inferred
- REQ-DDB-SCHEMA-006 inferred
- REQ-DDB-SCHEMA-007 inferred
- REQ-DDB-SCHEMA-009 inferred
- REQ-DDB-SCHEMA-011 inferred
- REQ-DDB-SCHEMA-012 inferred
- REQ-DDB-SCHEMA-013 inferred
- REQ-DDB-SCHEMA-014 inferred
- REQ-DDB-SCHEMA-015 inferred
- REQ-DDB-WIKI-001 measured
- REQ-DDB-WIKI-002 inferred
- REQ-DDB-WIKI-003 measured
- REQ-DDB-WIKI-004 measured
- REQ-DDB-WIKI-005 measured
- REQ-DDB-WIKI-006 inferred
- REQ-DDB-WIKI-007 inferred
- REQ-DDB-WIKI-010 inferred
- REQ-DDB-WIKI-016 inferred
- REQ-DDB-WIKI-019 inferred
- REQ-DDB-WIKI-024 inferred
- REQ-DDB-WIKI-026 inferred
- REQ-DDB-WIKI-027 inferred
- REQ-DDB-WIKI-028 inferred
- REQ-DDB-WIKI-029 inferred
- REQ-DDB-WIKI-035 inferred
- REQ-DDB-WIKI-036 inferred
- REQ-DDB-WIKI-037 inferred
- REQ-DDB-WIKI-038 inferred
- REQ-DDB-WIKI-040 inferred
- REQ-DDB-WIKI-041 inferred
- REQ-DDB-WIKI-042 measured
- REQ-DDB-WIKI-043 inferred
- REQ-DDB-WIKI-045 inferred
- REQ-DDB-WIKI-046 inferred
- REQ-DDB-WIKI-047 inferred
- REQ-DDB-WIKI-048 inferred
- REQ-DDB-WIKI-049 inferred
- REQ-DDB-WIKI-051 inferred
- REQ-DDB-WIKI-053 inferred
- REQ-DDB-WIKI-054 inferred