List tests
List tests in a Buildkite Test Engine suite with execution metrics aggregated over a selected time window. Supports filtering, metric sorting, and pagination.
Request
- Base URL: https://api.buildkite.com/v2/analytics
- URL: https://api.buildkite.com/v2/analytics/organizations/{org}/suites/{suite_slug}/tests
- Auth: HTTP bearer
Path parameters
Organization slug
Suite slug.
Query parameters
Filter by comma-separated test labels. Prefix a label with ! to exclude it, for example flaky,!slow.
Page number for pagination (minimum 1).
Results per page for pagination (minimum 1, maximum 100).
Relative aggregation window, such as 7days or 28days. Whether selected by period or timestamps, the aggregation window cannot exceed the organization's maximum Test Engine window. Cannot be combined with min_timestamp or max_timestamp.
End of the aggregation window in RFC 3339 format. Defaults to the current time when omitted. Cannot be combined with period.
Start of the aggregation window in RFC 3339 format. When omitted, defaults to the organization's default Test Engine period before the current time. Cannot be combined with period.
Return only tests with at least this many executions after applying the selected time window and execution filters.
Filter executions included in the metrics by branch. Prefix with ! to exclude an exact branch or suffix with * to match by prefix, for example !main or feature*. Use at most one operator.
Filter by comma-separated test owner slugs. Prefix an owner with ! to exclude it, for example payments,!platform.
Metric used to sort results: duration_avg, duration_sum, duration_min, duration_max, or reliability. Defaults to duration_avg. Metrics cover only executions in the selected window.
Sort direction: asc or desc. Defaults to desc.
Test state.
Filter by test state: enabled, muted, or skipped.
Filter by comma-separated execution tags in key:value form. Values support ! for exclusion and * for prefix matching. Result values additionally support ~ for any matching execution and ^ for every execution matching, for example framework:!rspec,scm.branch:feature*,result:^passed.
Headers
Opt in to the versioned Test Engine API response.
Response
A list of tests with metrics.
Changes
No recorded changes to this operation across all 1 revision of this API.