test_a_markdown_build_writes_the_summary_where_asked¶
Tests › tests/test_wiki_cisummary.py
What this test is for
Why it exists
Not among the pages: at the path given.
Given
repo = tmp_path / "repo"(repo / "pkg").mkdir(parents=True)
3 more
(repo / "pkg" / "mod.py").write_text(_SRC)(repo / ".clew.yaml").write_text(_WIKI)db = tmp_path / "x.db"
When
_run_pipeline(_build_argparser().parse_args(["--output", str(db), "--repo-root", str(repo)]))out = build_markdown(repo, db, tmp_path / "md", "ado", summary=tmp_path / "s.md")
Then
- ✓ (tmp_path / "s.md").is_file() holds
- ✓ (out / "summary.md").exists() is false
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 · 76 of 400 steps
… 6 steps between
… 2 steps between
… 23 steps between
… 9 steps between
… 36 steps between
… 155 steps between
… 50 later steps
7 more
- clew — `main` (clew/cli.py) · 36 of 400 steps
- thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 28 of 142 steps
- Build, refresh and check the index · 21 of 153 steps
- Look up one name: everything the index holds about it · 14 of 226 steps
- `main` (clew/guard/main.py) · 9 of 357 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 1 of 17 steps
- `main` (scripts/incremental_probe.py) · 1 of 3 steps
tests/test_wiki_cisummary.py:80 · its file's page
What it checks (1)
assert (tmp_path / "s.md").is_file() and not (out / "summary.md").exists()observesbuild_markdownviaout
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 56 more requirement paths, listed below.
Also reaches 71 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 measured
- REQ-DDB-CLI-002 inferred
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-CONFIG-004 measured
- REQ-DDB-CONFIG-005 measured
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-CONFIG-009 measured
- REQ-DDB-GUARD-012 measured
- REQ-DDB-GUARD-019 measured
- REQ-DDB-GUARD-024 measured
- REQ-DDB-GUARD-027 inferred
- REQ-DDB-INDEX-001 measured
- REQ-DDB-INDEX-002 measured
- REQ-DDB-INDEX-003 measured
- REQ-DDB-INDEX-004 measured
- REQ-DDB-INDEX-005 measured
- REQ-DDB-INDEX-006 measured
- REQ-DDB-INDEX-007 measured
- REQ-DDB-INDEX-008 measured
- REQ-DDB-INDEX-009 measured
- REQ-DDB-INDEX-010 measured
- REQ-DDB-INDEX-011 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-PIPE-001 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-004 measured
- REQ-DDB-PIPE-005 measured
- REQ-DDB-PIPE-006 measured
- REQ-DDB-PIPE-007 measured
- REQ-DDB-PIPE-008 measured
- REQ-DDB-PIPE-009 measured
- REQ-DDB-PIPE-010 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 measured
- REQ-DDB-PIPE-013 measured
- REQ-DDB-PIPE-014 measured
- REQ-DDB-PIPE-015 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-011 measured
- REQ-DDB-QUERY-015 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-002 measured
- REQ-DDB-SCHEMA-003 measured
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-009 measured
- REQ-DDB-SCHEMA-011 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-SCHEMA-013 measured
- REQ-DDB-SCHEMA-014 measured
- REQ-DDB-SCHEMA-015 measured
- REQ-DDB-WIKI-001 measured
- REQ-DDB-WIKI-002 measured
- REQ-DDB-WIKI-004 measured
- REQ-DDB-WIKI-010 measured
- REQ-DDB-WIKI-012 inferred
- REQ-DDB-WIKI-015 measured
- REQ-DDB-WIKI-018 measured
- REQ-DDB-WIKI-022 inferred
- REQ-DDB-WIKI-029 measured
- REQ-DDB-WIKI-038 measured
- REQ-DDB-WIKI-040 inferred
- REQ-DDB-WIKI-041 measured
- REQ-DDB-WIKI-054 inferred