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
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID to get test history for. Required when using a user API Key (gaf_). Use list_projects to find project IDs. | |
| testName | No | Exact test name to search for | |
| filePath | No | File path containing the test | |
| limit | No | Maximum number of results (default: 20) |