---
title: "Test Results"
description: "Browse test runs in Shiplight Cloud — filter runs, inspect steps, watch videos, open Playwright traces, and track a single test's history over time."
---

# Test Results

<div class="view-markdown-wrapper">
<ViewMarkdown />
</div>

Once your tests upload results to Shiplight Cloud, every run is browsable at [app.shiplight.ai](https://app.shiplight.ai) with its steps, screenshots, video, and Playwright trace preserved. This page covers browsing and debugging individual results. For trends across many runs, see [Analytics](/cloud_v2/analytics).

## Getting results into the cloud

Results are uploaded by the `shiplight report` command after a test run:

```bash
bun run shiplight test      # run the tests
bun run shiplight report    # upload — run this even when tests fail
```

Two environment variables control the upload:

| Variable                    | Purpose                                                                     |
| --------------------------- | --------------------------------------------------------------------------- |
| `SHIPLIGHT_API_TOKEN`       | Authenticates the upload and determines which organization owns the results |
| `SHIPLIGHT_REPORT_TO_CLOUD` | `1` (or `true`, `yes`, `on`) enables uploading                              |

::: tip
`SHIPLIGHT_REPORT_TO_CLOUD` accepts `1`, `true`, `yes`, or `on` (any case). Any other value skips the upload silently with no error. When `SHIPLIGHT_REPORT_TO_CLOUD` is unset, the CLI reads the older name `REPORT_TO_CLOUD` instead, with the same rule. To turn uploads off whatever the older name says, set `SHIPLIGHT_REPORT_TO_CLOUD=0`.
:::

The organization is always taken from the token, so a token decides where results land. See [API Tokens](/cloud_v2/api-tokens).

## Runs

**[app.shiplight.ai/runs](https://app.shiplight.ai/runs)** lists every run, newest first, 20 per page.

Each run gets a per-organization sequential number displayed as **RUN-42**. Numbering starts at 1 for your org's first run and never reuses a number, so deleted runs leave permanent gaps.

Filter by repository, branch, status, trigger, author, CI provider, workflow, PR number, and date range. Filter options are built from your actual data, and the branch list narrows to whichever repository you picked.

Use **Columns** to show or hide the table's columns; your choice is remembered in your browser. Available columns are status, repository and branch, commit, tests, duration, and started.

## Run detail

Opening a run gives you a split view. The left panel is a tree of tests grouped by spec file, with a search box and a status filter. The right panel shows the selected test. Shiplight jumps straight to the first failing test when you open a run.

The right panel has five tabs:

- **Steps** — the full statement tree from the run, including nested conditionals, loops, and modal dismissals. Each step carries its status, duration, and any screenshot captured for it (click to zoom). Where a locator was auto-healed, you can see the healed action.
- **Video** — the recording of the test.
- **Trace** — the Playwright Trace Viewer, embedded inline. You can also download the trace or open it in a new tab.
- **Output** — the test's stdout and stderr.
- **Info** — details about the test itself.

Video and Trace are disabled when that artifact wasn't captured.

When a test was retried, an **Attempt 1 / 2 / 3** selector appears so you can compare attempts.

The run info drawer, opened from the top right, carries the repository, branch, commit (with links to GitHub), commit message, PR, author, trigger, duration, and result counts, along with the run's reported LLM calls and tokens and an estimated provider cost.

## Tests

**[app.shiplight.ai/tests](https://app.shiplight.ai/tests)** flips the view around: instead of one run at a time, it lists each unique test across all runs, sorted worst-first by pass rate.

Each row shows the latest result, pass rate, flake rate, run count, a sparkline of recent outcomes, and when it last ran. Filter by repository, branch, date range, and status, or search by file and test name.

The pass rate and flake rate here are computed over each test's **last 30 runs**, not its whole history, so they reflect current behavior rather than lifetime averages.

Opening a test gives you two tabs:

- **History** — every run of that test, with result, duration, error, and available artifacts. Select any row to inspect it in place.
- **Metrics** — pass rate, flake rate, duration percentiles, a trend line, the **most frequent error messages** with counts, and a **per-branch breakdown**.

## What counts as flaky

A test is flaky when it **failed and then passed on retry within the same run**. It is a recorded outcome from the test runner, not something Shiplight infers after the fact.

This matters when reading numbers:

- At the **run** level, a flaky test does not fail the run — it is counted with the passes, and the flaky count is tracked separately so the distribution bar can show it.
- At the **test** level, flaky counts **against** the pass rate: `passed / (passed + flaky + failed)`.

## Related

- [Analytics](/cloud_v2/analytics) — trends, flakiness, and failure attribution
- [API Tokens](/cloud_v2/api-tokens) — tokens for uploading and reading results
- [CI/CD](/local/ci) — wiring the upload into your pipeline
