test_build_without_doxyfile_reports_error

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

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

  1. _mcp, state = server
  2. repo = tmp_path / "bare_repo"
3 more
  1. repo.mkdir()
  2. target = state.registry.register(str(repo))
  3. result = state._run_build(target, None, False)
→

When

  1. —
→

Then

  1. ✓ result["ok"] is False
  2. ✓ 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

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pyclew/mcp_server/state.pytry (line 1664)tryopt (line 1666)optopt (line 352)opt_first_build_worker33. _first_build_worker → target_for33target_for34. target_for → _safe_index_name34_safe_index_name35. target_for → state_home35state_home▶ test enters36. _first_build_worker → _run_build36_run_build37. _run_build → nested_tree_cache37nested_tree_cache▶ test enters38–39. _run_build → _run_build_walked38_run_build_walked +1 more40. _sub_index_rejection → first_party_sub_index40first_party_sub_index41. _sub_index_rejection → _buildable_sub_indexes41_buildable_sub_indexes

… 16 steps between

thread startthread startthread startthread startclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyclew/mcp_server/server.pyother filesother filesother filesother filesopt (line 3215)opttry (line 3260)try_first_build_worker58. _offered_sub_indexes → list58list59. _run_build_walked → _buildable_sub_indexes59_buildable_sub_indexes60. _run_build_walked → discover_doxyfile60discover_doxyfile61. _run_build_walked → captured_output61captured_output62. _run_build_walked → build_lock62build_lock

… 80 later steps

4 more

tests/test_mcp_server.py:916 · its file's page

What it checks (2)

  1. assert result["ok"] is False not attributed
  2. assert "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)

requirementlinked byimplementers exercised
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 4 requirements

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