Skip to main content
Glama

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

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" }

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