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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "python_test"
}
}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 |