Skip to main content
GET
/
api
/
test-runs
/
{id}
curl -X GET \
  "https://dash.empirical.run/api/test-runs/456" \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"
{
  "data": {
    "test_run": {
      "project": {
        "id": 123,
        "name": "My App",
        "repo_name": "my-app-tests"
      },
      "testRun": {
        "id": 456,
        "state": "ended",
        "total_count": 50,
        "success_count": 48,
        "failed_count": 2,
        "skipped_count": 0,
        "flaky_count": 1,
        "duration": 120000,
        "test_run_branch": "main",
        "environment_slug": "production",
        "run_started_at": "2024-01-15T10:30:00.000Z",
        "run_ended_at": "2024-01-15T10:32:00.000Z"
      },
      "flattenedSummaryDetails": [...]
    }
  }
}
Retrieves detailed information about a specific test run, including test results and project context.

Request

Authorization
string
required
Bearer token for authentication. Format: Bearer <your-api-key>
id
number
required
The unique identifier of the test run.

Response

data.test_run
object
The test run details.
curl -X GET \
  "https://dash.empirical.run/api/test-runs/456" \
  -H "Authorization: Bearer $EMPIRICALRUN_KEY"
{
  "data": {
    "test_run": {
      "project": {
        "id": 123,
        "name": "My App",
        "repo_name": "my-app-tests"
      },
      "testRun": {
        "id": 456,
        "state": "ended",
        "total_count": 50,
        "success_count": 48,
        "failed_count": 2,
        "skipped_count": 0,
        "flaky_count": 1,
        "duration": 120000,
        "test_run_branch": "main",
        "environment_slug": "production",
        "run_started_at": "2024-01-15T10:30:00.000Z",
        "run_ended_at": "2024-01-15T10:32:00.000Z"
      },
      "flattenedSummaryDetails": [...]
    }
  }
}