run_tests
Run Apex tests locally to get structured results: pass/fail status, assertion details, stack traces, and line-level code coverage.
Instructions
Execute Apex tests locally using the high-fidelity Go interpreter. Returns structured test results with pass/fail status, assertion details, stack traces, and line-level code coverage.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Specific test file to run (e.g., "MyTest.cls") | |
| filter | No | Regex pattern to filter test methods (e.g., "testAccount.*") | |
| failFast | No | Stop on first test failure | |
| parallel | No | Run tests in parallel for faster execution |