Run PHPUnit directly
run_phpunitRun PHPUnit tests on a Laravel/Composer project with optional filter, test suite, path, and timeout settings.
Instructions
Runs vendor/bin/phpunit with optional filter, test suite, and path from a Laravel/Composer app root.
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": {
"project": "<project>"
},
"name": "run_phpunit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project-relative working directory. When omitted, the tool auto-detects the relevant app root. | |
| path | No | ||
| filter | No | ||
| project | Yes | Project key from list_projects. | |
| testsuite | No | ||
| timeoutSeconds | No |