TMCP045 least_tested_requirements returns all requirements sorted by coverage¶
Call least_tested_requirements with no arguments and verify all requirements are returned sorted by ascending test count
Is a test for
Automated in
Source
Source file: specs/mcp/test_12.yaml
Loaded from: speky_mcp
Initial state¶
The expected state is the final state of
TMCP003 Initialize the MCP server
Procedure¶
Step 1¶
The client calls least_tested_requirements with no arguments
{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "least_tested_requirements",
"arguments": {}
}
}
Step 2¶
Verify all requirements are returned sorted by ascending test count, then ascending automated count, then alphabetically by ID:
RF04 first (0 tests)
RF01 then RF02 (1 test each, 0 automated)
RF03 last (2 tests, 1 automated)
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"structuredContent": {
"requirements": [
{"id": "RF04", "category": "non-functional", "test_plans": 0, "automated_test_plans": 0},
{"id": "RF01", "category": "functional", "test_plans": 1, "automated_test_plans": 0},
{"id": "RF02", "category": "functional", "short": "Second", "test_plans": 1, "automated_test_plans": 0},
{"id": "RF03", "category": "non-functional", "short": "Number 3", "test_plans": 2, "automated_test_plans": 1}
]
}
}
}