Analytics
Analytics turns your uploaded runs into trends: whether your suite is getting healthier, which tests waste the most time, and whether failures are real regressions or noise. For individual runs, see Test Results.
Every view is scoped to your organization. Run counts include runs still uploading, but pass rates count only finished runs. Each view has a Window of the last 7, 30, or 90 days (UTC) and can be filtered by repository and branch; the trend views also take day, week, or month buckets.
Home dashboard
app.shiplight.ai/home is the summary of the last 7 days across the organization: Run pass rate, Runs, Test pass rate, and Test executions, then the five Most failing tests and the five Flakiest tests. Home has no filters; open a view under Analytics to change the window.
If a plan or credit issue blocks hosted web AI steps and can be resolved in Billing, workspace owners see a notice linking there.
Trend views
| View | Shows |
|---|---|
| Run status | Summary cards, and runs per period with the run pass rate |
| Run duration | Run time per period (average, p50, p95, shortest, longest), and the slowest tests |
| Test status | Passed, flaky, failed, and skipped test executions per period, and the most failing tests |
| Flakiness | The flakiest tests in the window |
| Failure attribution | What actually caused your failures |
| Usage and cost | Which tests use the most AI tokens |
How the metrics are defined
Getting these right matters, because two reasonable-sounding "pass rates" are different numbers.
Run pass rate counts whole runs: passed / (passed + failed). Runs that errored or were cancelled are left out of both sides.
Test pass rate counts individual test executions: passed / (passed + flaky + failed). Timed-out tests count as failed, skipped tests are excluded entirely, and flaky counts against you.
Flakiness rate is flaky / (passed + flaky + failed) per bucket.
A test is flaky when it failed and then passed on retry inside the same run. It's an outcome reported by the test runner, not something inferred from history.
Why a run can pass with flaky tests in it
At the run level a flaky test is counted as a pass — it didn't break the build. At the test level it counts against the pass rate, because it did waste your time. Same data, two questions.
Run duration is the wall-clock time from run start to run end. Runs missing either timestamp are excluded.
The ranked tables
Most failing and Flakiest tests both require a test to have run at least 5 times in the window before it's ranked, so a single bad run doesn't dominate. Slowest tests are ranked by median (p50) duration, with p95 shown alongside.
A per-test flake rate that differs
On the Tests list, the flake rate column is a different measurement: it's how often a test changed outcome between consecutive runs, over its last 30 runs. It answers "how unstable is this test", where the analytics flakiness rate answers "how much of my execution volume was flaky". Expect the two numbers to differ for the same test.
Failure attribution
Attribution answers the question trends can't: was that failure our product breaking, or our test being wrong? It's built from classifications your triage workflow submits — typically the CI auto-triage pipeline.
| Category | Meaning |
|---|---|
| App regression | The application actually broke — a real product regression |
| Test issue | The test or spec is stale or wrong; the app behaved correctly |
| Test data | A test-data or shared-account problem, not the app and not the test logic |
| Infrastructure flake | Auth, infrastructure, or external flakiness |
| Unknown | Triage could not determine a cause |
The page shows how many classified failures fell in each category, and a Classified failures over time table with each category per period, so you can see whether your failures are getting more or less real.
This page only covers classified failures
It shows failures your triage workflow classified, not all failures. There is deliberately no coverage percentage, so treat the shares as composition among triaged failures rather than a complete picture.
Usage and cost
Usage and cost shows which tests use the most AI: a Tests by AI token use table with each test's tokens, AI calls, and tokens per reporting execution (only executions that reported tokens count), from what the CLI reported. Tests that reported no tokens or calls are left out.
For organization-wide numbers — what was billed, tokens per test, cache hit rate, and a breakdown by operation and model — see the Usage page. A low cache hit rate is usually the cheapest thing to fix, since cached locators replay without calling a model at all.
Scheduled digests
Digests post a recurring summary to Slack, configured at app.shiplight.ai/notifications.
Not sent on the hosted service
The hosted service doesn't send digests at the moment. The Notifications page says so when digests are off.
Choose a cadence — daily, weekly (Mondays), or monthly (the 1st), all sent at 08:00 UTC — and cover the period that just closed. Optionally scope a digest to a repository or branch.
Every digest has the same sections:
- Health — runs and test executions in the period, with their pass rates
- Most failing — top failing tests
- Flakiest — top flaky tests
- Slowest — top tests by median (p50) duration
Ranked sections default to 10 entries and go up to 25. Unlike the analytics pages, digests include tests with as little as one execution, so short daily windows aren't empty. With no failing or flaky test, those two lists become one all-clear line.
Reading analytics from the API
Everything here is available at https://api.shiplight.ai/v1/analytics/* — summary, the four trend series, the ranked test lists, and attribution. Rates come back as percentages.
These endpoints require a token with the analytics:read scope, unlike the raw result endpoints which need no particular scope. See API Tokens.
Related
- Test Results — individual runs and per-test history
- API Tokens — scopes for the analytics API
- CI/CD — getting results and classifications flowing