run_tests
Execute pytest tests with a specified Python virtual environment. Configure test paths, specific functions, verbosity, or test collection only. Returns detailed results including return code, output, and execution time.
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 |