python_test
Run Python tests using pytest with coverage reporting and test selection by file, pattern, or markers.
Instructions
Run Python tests using pytest with coverage reporting and test selection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| markers | No | Run tests matching given mark expression (-m) | |
| pattern | No | Test file pattern to match using -k flag (e.g., test_foo) | |
| timeout | No | Command timeout in milliseconds | |
| verbose | No | Enable verbose output | |
| coverage | No | Enable coverage reporting | |
| testPath | No | Specific test file or directory to run | |
| directory | No | Working directory for the command |