API and Webhooks
API
Get flaky tests in the last 30 days.
GET
https://api.aviator.co/api/v1/testdeck/flaky
The flaky test API can be used to fetch the results of all flaky tests in the last 30 days. The results are paginated with maximum of 100 results returned in the response. The results are in the order of the most recent flaky, based on first_occurrence
.
Request Body
org*
String
Organization name for the repo.
repo*
String
Repository name.
page
Integer
Page number
github_check_name*
String
Name of the GitHub check
Webhooks
Aviator already supports a webhook framework that lets you listen to various events. By using Aviator’s new capabilities to detect flaky tests, you can now subscribe to these flaky test webhooks to take actions based on the event payload.
Event payload
Example JSON payload for TestDeck webhook:
Note: commit_sha
is an optional field and will only be present when notifying about a new_flaky_test
.
Event actions
You can subscribe to these specific actions for webhooks.
new_flaky_test
- a new flaky test is found.resolved_flaky_test
- when an existing flaky test has not been identified as flaky in the last 14 days
Last updated