Skip to main content
Glama

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

NameRequiredDescriptionDefault
collect_onlyNo
test_nameNo
test_pathNo
verboseNo

Input Schema (JSON Schema)

{ "properties": { "collect_only": { "default": false, "title": "Collect Only", "type": "boolean" }, "test_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Test Name" }, "test_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Test Path" }, "verbose": { "default": false, "title": "Verbose", "type": "boolean" } }, "type": "object" }

Other Tools from editor-mcp

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielpodrazka/editor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server