test
Runs an R package’s unit suite or a filtered subset using devtools, then reports results in a selected format.
Instructions
Run the package's test suite (or a filtered subset) using devtools::test(). Reports test results in the chosen format.
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_path": "<project_path>"
},
"name": "test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Regex pattern to restrict which test files are run (e.g. 'my_func'). | |
| reporter | No | testthat reporter to use (e.g. 'progress', 'summary'). Defaults to 'progress'. | |
| project_path | Yes | Absolute path to the root of the R package. |