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_FAILin descending order. Use-for descending order.Available fields are:
AVG_DURATIONFLAKE_RATEFAILURE_RATECOMMITS_WHERE_FAILUPDATED_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_TESTSFAILED_TESTSSLOWEST_TESTSSKIPPED_TESTS
interval(string)The time interval to search for results by.
Available fields are:
INTERVAL_30_DAYINTERVAL_7_DAYINTERVAL_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.
cursor(string)The cursor to start the query from. Will return results after the cursor if used with
firstor before the cursor if used withlast.term(string)The term substring to filter test name strings by using the
containsoperator.
Scopes
<auth_token> requires one of the following scopes:curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results/ \ -H 'Authorization: Bearer <auth_token>'
Copied.