analyze_test_quality
Assess test suite quality by analyzing assertion density, test length, naming conventions, and magic numbers. Returns per-file and per-test metrics with a quality score and grade to identify weak tests.
Instructions
Analyze test suite quality: assertion density, test length, naming conventions, magic numbers, and more. Returns per-file and per-test metrics with a quality score (0-100) and grade.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "analyze_test_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root directory containing test files. | |
| max_length | No | Max test function length before flagging (default: 50). |