Skip to main content
Glama

get_test_history

Retrieve pass/fail history for specific tests to investigate flaky behavior and analyze test stability over time, including run durations, branch details, and error messages.

Instructions

Get the pass/fail history for a specific test.

When using a user API Key (gaf_), you must provide a projectId. Use list_projects first to find available project IDs.

Search by either:

  • testName: The exact name of the test (e.g., "should handle user login")

  • filePath: The file path containing the test (e.g., "tests/auth.test.ts")

Returns:

  • History of test runs showing pass/fail status over time

  • Duration of each run

  • Branch and commit information

  • Error messages for failed runs

  • Summary statistics (pass rate, total runs)

Use this to investigate flaky tests or understand test stability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoProject ID to get test history for. Required when using a user API Key (gaf_). Use list_projects to find project IDs.
testNameNoExact test name to search for
filePathNoFile path containing the test
limitNoMaximum number of results (default: 20)

Latest Blog Posts

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/gaffer-sh/mcp'

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