Skip to content

test(mcp): add comprehensive tool and resource tests#364

Open
fagemx wants to merge 2 commits intomainfrom
test/mcp-comprehensive-coverage-354
Open

test(mcp): add comprehensive tool and resource tests#364
fagemx wants to merge 2 commits intomainfrom
test/mcp-comprehensive-coverage-354

Conversation

@fagemx
Copy link
Copy Markdown
Owner

@fagemx fagemx commented Mar 27, 2026

Summary

  • Add 14 new tests to edda-mcp covering all previously untested tool endpoints: edda_status, edda_note, edda_context, edda_tool_tier, plus additional edda_log and edda_draft_inbox edge cases
  • Total test count: 17 → 31. All 8 MCP tool endpoints now have test coverage.
  • Resources (edda://context, edda://log) share logic with edda_context and edda_log tools, which are now tested

Closes #354

Test plan

  • cargo test -p edda-mcp — 31/31 pass

🤖 Generated with Claude Code

fagemx and others added 2 commits March 27, 2026 08:25
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add 14 new tests covering all previously untested MCP tool endpoints:
- edda_status (2 tests): empty workspace, after events
- edda_note (3 tests): basic, role/tags, sequential writes
- edda_context (3 tests): empty workspace, with data, custom depth
- edda_tool_tier (2 tests): default config, unknown tool fallback
- edda_log (2 tests): limit, empty log
- edda_draft_inbox (2 tests): skips applied, skips latest.json

Total: 17 -> 31 tests. All 8 tool endpoints now have test coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test] MCP crate severely under-tested

1 participant