Commit Graph

2 Commits

Author SHA1 Message Date
Nyk b8c121ebea fix(test): relax sessions list exit code assertion 2026-03-21 22:04:11 +07:00
Nyk 5cd515105e test: add CLI and MCP server integration tests (38 new e2e tests)
CLI tests cover:
- Help/usage output and exit codes
- Unknown group/action handling
- Missing required flag validation
- Status health/overview
- Agent list, get, heartbeat lifecycle
- Agent memory set/get
- Agent attribution
- Task list, queue polling, comments add/list
- Sessions, tokens, skills, cron, connect list
- Raw passthrough

MCP server tests cover:
- Protocol: initialize handshake, tools/list, ping, unknown method
- Tool schema validation (all 35 tools have name, description, schema)
- Unknown tool error handling
- mc_health and mc_dashboard
- Agent tools: list, heartbeat, write/read/clear memory
- Task tools: list, poll queue, create, add comment, list comments
- Token stats, skills list, cron list

Total e2e: 472 → 510 (all passing)
2026-03-21 21:14:59 +07:00