run_tests
Run pytest tests for a service inside an issue workspace and report pass/fail results without modifying any files.
Instructions
Run the target repository's own pytest suite for one service, inside the issue's workspace, subject to a timeout. This only executes tests and reports the result -- it never commits or modifies anything. Returns a string starting "OK" or "FAILED" followed by the exit code and captured stdout/stderr, "REFUSED: ..." if the path is option-like, escapes the workspace, or touches '.git', or "ERROR: ..." if the run times out or fails to start -- never raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes | The issue number whose active workspace to run tests in; must have been started with start_issue first. | |
| service_relative_path | Yes | Path to the service or test target, relative to the issue workspace root, passed to `pytest -- <path>`. Refused if it starts with '-' (could be parsed as a pytest option), escapes the workspace, or touches '.git'. |