Retrieve a paginated list of test results for a given repository and owner
GET /api/0/prevent/owner/{owner}/repository/{repository}/test-results/
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
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
.first
(integer)The number of results to return from the start of the list.
last
(integer)The number of results to return from the end of the list.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:
Copied
curl https://sentry.io/api/0/prevent/owner/{owner}/repository/{repository}/test-results/ \ -H 'Authorization: Bearer <auth_token>'
RESPONSESCHEMA
Copied.
Was this helpful?