run_tests
Execute Jest, Vitest, or Pytest tests and return a compact, structured summary. Use get_failures to drill into any failed tests.
Instructions
Run tests and return a compact summary. Use get_failures to drill into failures.
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": {
"projectDir": "<projectDir>"
},
"name": "run_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Time budget in milliseconds. Process is killed if exceeded. | |
| coverage | No | Enable coverage collection | |
| fileGlob | No | Glob pattern to filter test files | |
| framework | No | Force a specific framework | |
| projectDir | Yes | Absolute path to the project directory | |
| testNamePattern | No | Regex pattern to filter test names |