test_build_without_doxyfile_reports_error¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
A repo with no Doxyfile yields a legible error instead of a traceback, and never starts the pipeline.
Verifies REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
Given
_mcp, state = serverrepo = tmp_path / "bare_repo"
3 more
repo.mkdir()target = state.registry.register(str(repo))result = state._run_build(target, None, False)
When
- —
Then
- ✓ result["ok"] is False
- ✓ result["error"] contains "No Doxyfile"
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.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 5 of 142 steps
… 32 earlier steps
… 16 steps between
… 80 later steps
4 more
- Build, refresh and check the index · 1 of 153 steps
- clew — `main` (clew/cli.py) · 1 of 400 steps
- clew-mcp — `main` (clew/mcp_server/server.py) · 1 of 17 steps
- `main` (scripts/incremental_probe.py) · 1 of 3 steps
tests/test_mcp_server.py:916 · its file's page
What it checks (2)
assert result["ok"] is Falsenot attributedassert "No Doxyfile" in result["error"]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 (4)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-MCP-003 | catalog | unknown |
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-008 measured
- REQ-DDB-INDEX-001 measured
- REQ-DDB-MCP-001 measured