Python test (structured)
python_testRuns pytest and returns structured test results with pass/fail counts and failure messages, listing only failures by default for compact output.
Instructions
Run pytest and return structured test results: suites, pass/fail counts, failure messages. Much more compact than raw test output. Only failures are listed by default; use verbose=true for all tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory | |
| path | No | Specific test path or file to run | |
| pattern | No | Filter tests by expression (-k pattern) | |
| verbose | No | Include all tests in output (default: only failures) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suites | Yes | ||
| summary | Yes | ||
| retained | No |