Skip to main content
A test entity is either a spec file or an individual test, selected with --kind. Only a test runs, so only a test has outcomes and attempts. A spec is the file its tests live in, so reading one returns the tests it contains rather than outcomes. For fields and response details, see the API reference.
Sample output on this page uses --json. Pretty tables pick their columns from the payload and the terminal width, so they are not reproducible; the JSON envelope is. See Output formats.

test-entities list

Lists the specs or tests a run recorded. Filter to the failing ones to go straight from a red run to the tests that made it red.

Required arguments

  • <run_id> - the run whose entities to list, from runs list.
  • --project <project_id> - the project the run belongs to.
--kind is spec when omitted. --status takes a comma-separated list, each member exactly one of passed, failed, interrupted, timed_out, skipped, not_run, flaky, passing, failing, running, pending. This command defaults to 25 records per page rather than 15.
Sample output
For a spec, title is the file name.

test-entities get

Shows one test entity with everything the run recorded for it. For a test that means the outcomes, the attempts inside each outcome, the Playwright error output, and time-limited links to the screenshots, videos, traces, and Lighthouse reports captured. For a spec it means the list of tests the run recorded in that file.

Required arguments

  • <test_entity_id> - the entity to show, from test-entities list.
  • --project <project_id> - the project the run belongs to.
  • --run <run_id> - the run the entity was recorded in.
Sample output
outcomes and tests are complementary: a test fills outcomes and leaves tests empty, and a spec does the reverse, listing each contained test with its id, title, and status so you can read it individually. Artifact URLs are time-limited. Fetch them when you are about to open them rather than storing them.
A test entity id must name an entity the given run recorded. One that ran only in other runs is refused rather than returned with a placeholder status.
See the API reference for the full response.