run_tests
Execute automated pytest tests inside the repository sandbox to validate code changes, then receive exit code, pass/fail counts, duration, and output summary for quick failure diagnosis.
Instructions
Execute automated pytest tests within the repository sandbox.
Args: test_target: Optional relative test file or test node (e.g. 'tests/test_math.py::test_add'). timeout_seconds: Maximum time allowed before terminating process (default: 30s).
Returns: JSON string with exit code, passed/failed counts, duration, and output summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_target | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |