Get a test and its flakiness metrics
Get a test with its flakiness metrics over a period: how many builds ran it, how many times it changed, and how stable and consistent those changes were. The metrics also come bucketed over time, so you can tell a test that has always been flaky from one that started recently. Pair it with `listTestChanges` to see what actually keeps changing. Use it when asked whether a test is flaky, or since when.
Get a test with its flakiness metrics over a period: how many builds ran it, how many times it changed, and how stable and consistent those changes were. The metrics also come bucketed over time, so you can tell a test that has always been flaky from one that started recently. Pair it with listTestChanges to see what actually keeps changing. Use it when asked whether a test is flaky, or since when.
Authenticate as a project with a project token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <project-token>You can find your project token in your Snapvisor project settings. Project tokens are used by CI and the SDK to create builds and deployments.
In: header
Path Parameters
1 <= length1 <= lengthThe test identifier, as returned in a diff's test.id
Query Parameters
Period over which the test flakiness metrics are computed.
"LAST_7_DAYS"Value in
- "LAST_24_HOURS"
- "LAST_3_DAYS"
- "LAST_7_DAYS"
- "LAST_30_DAYS"
- "LAST_90_DAYS"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/projects/string/string/tests/string"{ "id": "string", "name": "string", "buildName": "string", "metrics": { "total": 0, "changes": 0, "uniqueChanges": 0, "stability": 0, "consistency": 0, "flakiness": 0 }, "status": "ongoing", "createdAt": "2019-08-24T14:15:22Z", "url": "http://example.com", "series": [ { "date": "2019-08-24T14:15:22Z", "total": 0, "changes": 0, "uniqueChanges": 0 } ], "firstSeenChange": { "date": "2019-08-24T14:15:22Z", "url": "http://example.com", "buildNumber": 1, "buildUrl": "http://example.com" }, "lastSeenChange": { "date": "2019-08-24T14:15:22Z", "url": "http://example.com", "buildNumber": 1, "buildUrl": "http://example.com" }}List a project's ignored changes GET
List the changes currently ignored in a project, most recently ignored first. Use it to audit what has been silenced and to unignore anything that should be reviewed again.
List a test's changes GET
List the distinct changes a test produced over a period, the ones that came back most often first. Each change is one exact visual difference, with how many times it reappeared, whether it is ignored, and the diff of its latest occurrence — so you can look at what moved. A change that keeps reappearing while nothing in the UI changed is a flaky one: fix what makes it unstable, or silence it with `ignoreChange`. Use it to see what keeps changing in a flaky test.