Create Test Run
Test Runs
Create Test Run
Trigger a new test run
PUT
Create Test Run
Triggers a new test run for the specified project and environment.
Minimal request
With build info
With environment variables
With tags
With a custom test repo branch
If branch is not mentioned, test run is triggered on default project branch. Use this param for running tests from a branch currently you are working on before merging. This param works only if this branch exists on the remote repository. Cannot be used together withbuild parameter — pick one.
Authorizations
Project API key from the Empirical dashboard.
Body
application/json
Test run to create.
The environment slug to run tests against (e.g., production, staging).
Build information to associate with the test run.
Custom key-value pairs to associate with the test run. Values must be strings or numbers.
Environment variables to override for this test run.
Tags to filter which tests to run (e.g., @smoke, @critical). Only tests matching these tags will be executed.
Test repo branch to run. Useful for running tests from a feature branch before merging. Cannot be used together with build — pick one.
Response
Created test run.