run_tests
Execute pytest tests within a specified Python virtual environment. Run tests by directory, file, or specific function, with options for verbose mode or test collection only, returning detailed execution results.
Instructions
Run pytest tests using the specified Python virtual environment.
Args: test_path (str, optional): Directory or file path containing tests to run test_name (str, optional): Specific test function/method to run verbose (bool, optional): Run tests in verbose mode collect_only (bool, optional): Only collect tests without executing them
Returns: dict: Test execution results including returncode, output, and execution time
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collect_only | No | ||
test_name | No | ||
test_path | No | ||
verbose | No |