Skip to main content
The Test Runs API allows you to programmatically trigger test runs, retrieve their status, and manage their lifecycle.

Authentication

All endpoints require authentication using a Bearer token. Generate an API key from the dashboard.
Authorization: Bearer $EMPIRICALRUN_KEY

Base URL

https://dash.empirical.run/api

Test Run States

Test runs transition through the following states:
StateDescription
pendingRun is queued behind other runs (concurrency limit reached)
queuedRun is queued and will start soon
startedRun is currently executing
endedRun completed successfully
errorRun failed with an error
cancellingRun is being cancelled
cancelledRun was cancelled

Error Codes

When a test run fails, it may include one of these error codes:
Error CodeDescription
merge_conflictMerge conflict detected when merging test branch
dispatch_failedFailed to dispatch the test run to workers
report_not_generatedTest report was not generated
run_failed_with_errorTest run failed with an error during execution
worker_interruptedTest run worker was interrupted
merge_reports_failedFailed to merge sharded reports