Analyzing results (fleetest results, dashboard)

in Japanese(日本語)

Every fleetest run (CLI or fleetest api run) appends its results to TestProjects/<name>/results/. This page covers the fleetest results commands and how to read a failure; the full JSON schema is the single source of truth at Result JSON schema (Japanese).

Layout

results/runs/<YYYY-MM>/<runID>/
  run.json                     ... this run as a whole
  scenarios/<scenarioID>.json  ... one scenario execution
  scenarios/<scenarioID>~2.json ... a re-run within the same run (numbered)
  events/<scenarioID>.ndjson   ... that scenario's execution log (see `fleetest results log` below)
  events/.inflight-<UUID>.ndjson ... an execution log still being written (or killed before it was finalized)
  superseded/<scenarioID>[~N].<k>.json ... a record cancelled by a re-run
  events/superseded/<scenarioID>[~N].<k>.ndjson ... the execution log of the same cancelled record
  host-metrics.ndjson          ... host load (cpu/gpu/mem) during the run

results/ is an append-only, git-friendly layout: runID embeds the machine name and a random suffix, so results from different machines/branches merge without conflicts.

fleetest results commands

Command Description
fleetest results list [--since <period>] [--limit <n>] List runs, newest first
fleetest results summary [--scenario <id>] Aggregate run count, pass rate and duration per scenario (lowest pass rate first). Scenarios that never started because you interrupted the run are left out of the pass rate. --scenario takes a scenario ID or a class name (all of its scenarios). Like flaky, rows are per (scenario, variant, platform) (a run without variants has no variant)
fleetest results flaky [--min-runs <n>] Scenarios that both pass and fail, most flaky first (one row per scenario, variant and platform)
fleetest results trend --scenario <id> One scenario's run history in chronological order (--scenario is a full scenario ID such as Class.method; bars are scaled per platform)
fleetest results devices Run count and pass rate per worker (device, per machine — the same device name on two machines is two rows) and per platform
fleetest results slow [--limit <n>] Scenarios by average duration, slowest first (over the whole --since window)
fleetest results response Per step of response-measurement runs (responseMeasurement=true): time to first frame (n, median, p90, busy count), time until the next action is possible (n, median, p90), and the change in time to first frame from the previous measurement run on the same host and device. Steps are keyed by scene, section, command, description and occurrence within the scenario; runs on a different host or device are never compared. See Response measurement
fleetest results insights Ten checks over the run history — see What insights detects
fleetest results log <runID> [--scenario <id>] A run's per-scenario execution log — see Reading a scenario's execution log

All of them accept --project, and (except log) --since <period> (a relative value like 30d/12h, or YYYY-MM-DD — midnight UTC of that date, while the tables show local time; default 90d) and --json for single-line JSON output. Run fleetest results <subcommand> --help for the exact flags. Every subcommand also accepts --variant <name> to keep only the records of that variant declared in the run profile's variants (records of runs without variants have none, so they are left out).

Reading a scenario's execution log

fleetest results log <runID> prints, scenario by scenario, everything that scenario's execution wrote — the same lines you'd see scroll by during fleetest run (steps with their pass/fail symbol, scenes, print() output on stdout/stderr, host-side notices such as a scenario being stopped because its output stopped or it ran past its time limit), reconstructed from events/<scenarioID>.ndjson. <runID> also accepts latest. Use --scenario <id> to show only one scenario, and --raw to print the underlying NDJSON lines unformatted instead (the per-scenario headings then go to stderr, so stdout stays pure NDJSON).

Old runs, or runs whose events/ was already cleared by the log and recording cleanup, have no execution log — the command reports that on stderr and exits non-zero. A run that was interrupted (or aborted while preparing devices) before any scenario started has no execution log either, and the message says so. A scenario that was superseded by a re-run (frozen device, environment error) still shows under an extra "(superseded)" heading, and a log that was still being written when the run was killed shows under "(incomplete)".

What insights detects

insights reads the same recorded facts and reports patterns that only become visible across several runs. Ten checks, each emitted as one row with a severity:

kind severity Fires when
newFailure critical A scenario failed after a run of consecutive passes (possible regression)
consecutiveFailures critical A scenario has failed several runs in a row
infraFailures warn Repeated failures whose signature is not an assertion — see the note below
selectorDecay warn Reliance on self-healing/fallback is growing for a scenario
healReliance warn One selector has passed only via self-healing (locator fingerprint matching) for several runs — apply the suggestion
unsettledSteps warn Steps went ahead while the screen was still moving (a leading indicator of flakiness)
deviceBias warn Failures cluster on one worker/device rather than spreading evenly
durationRegression warn A scenario's duration grew against its own earlier history
unfinishedRuns info Runs ended incomplete (possible crash or force-quit)
retiredScenarios info Scenarios still have results but are no longer being run — excluded from the checks above

On infraFailures and "cause". This row does not claim to know what the environment was doing. It counts failures by their recorded signature — the run timed out, or it ended with errorLogs without reaching a single step — and contrasts that count with assertion failures. A scenario whose failures are mostly of that shape is worth looking at for a different reason than one failing an assertion; that is all the row asserts. Deciding whether a slow app or a busy machine was responsible is still yours to make, from evidence outside the tool.

Every row that names a scenario (all of the above except unfinishedRuns/retiredScenarios) is scoped to one (scenario, platform) pair, not just the scenario ID. A project that runs the same scenario ID on both ios and android (for example a Compose Multiplatform suite) gets a separate row per platform — mixing the two would blend unrelated pass/fail and duration histories into one misleading trend. fleetest results slow scopes its rows the same way. Devices are told apart per machine too: deviceBias treats the same device name on two machines as two devices, and durationRegression compares a scenario's history on one machine at a time (the message names the machine when records span several).

Reading a failed run

The tool records only observable facts — it does not guess whether a failure was "environmental" (a slow app vs. a busy machine are indistinguishable from the outside).

You want to know Look at
Which phase failed failedSteps[].section = condition / action / expectation / beforeAll / setUpDevice / beforeEach / afterEach / afterAll / tearDownDevice
Which command failed failedSteps[].command
Which failure path failedSteps[].failureKind (see below)
What was happening at that step failedSteps[].notes (e.g. interruption-dismissed)
Whether the scenario never even reached a step failedSteps is empty — check errorLogs / skipKind
Whether devices dropped out during the run run.json's workerAnomalies
Which iOS mode ran Per scenario: mode (inapp-boost / xcuitest). Per device: run.json's workerModes — the mode asked for (requested), the one actually used (effective), and the reason when they differ (reason; e.g. the in-app bridge could not be injected into the app on a physical device, so it ran in xcuitest mode). Steps that inapp-boost mode sent to the XCUITest bridge end with (fell back to XCUITest) in their description (timeline[].description and the execution log; steps.passedViaFallback is something else — the steps resolved by a fallback selector)
Whether one device was slow run.json's slowWorkers (that device's median screen read was at least 10× the other devices' and over 1 second — or, intermittently, at least 5 of its screen reads (20% or more) took over 2 seconds while the other devices rarely did. A warning only — the device is not excluded; never set for a single-device run)

failureKind values: selector-syntax (caught before touching a device), not-found (locator never resolved, even after scroll search), assertion (value/state mismatch), driver-unreachable (bridge unreachable), driver-error (bridge returned an error), timeout, app-not-installed, app-stopped-by-session (the scenario acted on an app it stopped with terminateApp without launching it again), app-in-background (on iOS, the scenario acted on the app after home() or after leaving for another app, without bringing it back first), system-ui-covered (an OS system UI was covering the app: a permission alert while iosAlertHandler was registered, or the app switcher opened by appSwitcher()), display-not-applied (on iOS in inapp-boost mode, the app had not received the appearance or text size that was set). A missing failureKind means the tool could not tell — it is left out rather than guessed.

# Count failed scenarios by phase x failureKind x command
jq -r 'select(.passed==false) | .failedSteps[0]
       | "\(.section // "-")\t\(.failureKind // "-")\t\(.command // "-")\t\(.description)"' \
  results/runs/2026-08/*/scenarios/*.json | sort | uniq -c

In VSCode

The command palette's "fleetest: Open Results Dashboard" opens a panel showing notable issues, the comparison with the previous run, recent runs, a filterable/sortable per-scenario summary, flaky scenarios, and device health (current state/storage from the Device Monitor combined with run-history counts: excluded from run, requeued, pre-run exclude/repair, recovery operations, app crashes) — backed by the same fleetest results data (a toolbar control switches the aggregation period between the last 5/10 minutes, 1/3/8/16 hours, and 1/2/3/7/30/90 days). See the Results Dashboard section of VSCode extension.

CI

fleetest run --junit <path> writes a JUnit XML report alongside the JSON results, for CI test reporting. See CI integration.