---
title: "Get test run details"
method: GET
path: "/api/v1/user/projects/{projectId}/test-runs/{testRunId}/details"
tags: ["Test History"]
---

# Get test run details

`GET /api/v1/user/projects/{projectId}/test-runs/{testRunId}/details`

## Request

- Base URL: `https://app.gaffer.sh`
- URL: `https://app.gaffer.sh/api/v1/user/projects/{projectId}/test-runs/{testRunId}/details`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-API-Key`
  - HTTP bearer

Returns parsed test results for a specific test run with pagination and filtering.
Includes individual test cases with error messages and stack traces.
Also includes the test run's commit, branch, and framework context.

## Path parameters

- `projectId` string, required
- `testRunId` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `status` 'passed' | 'failed' | 'skipped'

## Response `200`

Paginated test cases with run context

- TestRunDetailsResponse: Detailed test results for a specific test run, including run context.
  - `testRunId` string, required
  - `commitSha` string, nullable: Git commit SHA
  - `branch` string, nullable: Git branch name
  - `framework` string, nullable: Test framework (e.g., playwright, vitest)
  - `createdAt` string, date-time, required: When the test run was created
  - `summary` TestSummary, required
    - `passed` integer, required
    - `failed` integer, required
    - `skipped` integer, required
    - `total` integer, required
    - `durationMs` integer, nullable: Total duration in milliseconds
  - `tests` TestCaseDetail[], required
    - `name` string, required: Short test name
    - `fullName` string, required: Full test name including describe blocks
    - `status` 'passed' | 'failed' | 'skipped', required
    - `durationMs` number, nullable: Test duration in milliseconds
    - `filePath` string, nullable: Test file path
    - `error` string, nullable: Error message for failed tests
    - `errorStack` string, nullable: Full stack trace for failed tests
  - `pagination` Pagination, required
    - `limit` integer, required
    - `offset` integer, required
    - `total` integer, required
    - `hasMore` boolean, required

## Other responses

- `400`: Invalid request parameters
- `401`: Missing or invalid API key
- `404`: Resource not found

---

[API](https://skmtc.dev/gaffer/apis/gaffer-api.md) · [All operations](https://skmtc.dev/gaffer/apis/gaffer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gaffer/apis/gaffer-api/revisions/d742ab303118?raw)
