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": [...]
}
}
}
Retrieve details of a specific test run
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": [...]
}
}
}
Bearer <your-api-key>Show properties
Show properties
pending, queued, started, ended, error, cancelled).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": [...]
}
}
}
Was this page helpful?