Retrieve paginated list of test results for repository, owner, and organization
Retrieves the list of test results for a given repository and owner. Also accepts a number of query parameters to filter the results.
Path Parameters
organization_id_or_slug
(string)REQUIREDThe ID or slug of the organization the resource belongs to.
owner
(string)REQUIREDThe owner of the repository.
repository
(string)REQUIREDThe name of the repository.
Query Parameters:
sortBy
(string)The property to sort results by. If not specified, the default is
COMMITS_WHERE_FAIL
in descending order. Use-
for descending order.Available fields are:
AVG_DURATION
FLAKE_RATE
FAILURE_RATE
COMMITS_WHERE_FAIL
UPDATED_AT
filterBy
(string)An optional field to filter by, which will constrain the results to only include tests that match the filter.
Available fields are:
FLAKY_TESTS
FAILED_TESTS
SLOWEST_TESTS
SKIPPED_TESTS
interval
(string)The time interval to search for results by.
Available fields are:
INTERVAL_30_DAY
INTERVAL_7_DAY
INTERVAL_1_DAY
branch
(string)The branch to search for results by. If not specified, the default is
main
.limit
(integer)The number of results to return. If not specified, defaults to 20.
navigation
(string)Whether to get the previous or next page from paginated results. Use
next
for forward pagination after the cursor orprev
for backward pagination before the cursor. If not specified, defaults tonext
. If no cursor is provided, the cursor is the beginning of the result set.cursor
(string)The cursor pointing to a specific position in the result set to start the query from. Results after the cursor will be returned if used with
next
or before the cursor if used withprev
fornavigation
.term
(string)The term substring to filter name strings by using the
contains
operator.
Scopes
<auth_token>
requires one of the following scopes:org:admin
org:read
org:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results/ \ -H 'Authorization: Bearer <auth_token>'
Copied.