run_tests
Executes a repository's pytest suite or a specified target to surface reproducible failures and pinpoint likely bug locations. Requires environment setup first.
Instructions
Run the repo's pytest suite (or one target: a file, dir or node id) in its environment.
Use this to find real, reproducible test failures. Returns counts, the exact command and
commit (ready to use as Evidence), and up to max_failures failures. Each failure has the
message, a trimmed traceback, and location: the deepest traceback frame inside the repo
that is NOT a test file, i.e. where the bug most likely lives (null if only test code ran).
Requires setup_environment first. Check failures with detect_flaky_tests before reporting.
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": {
"repo": "<repo>"
},
"name": "run_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| target | No | ||
| timeout_s | No | ||
| max_failures | No |