Skip to main content
A result history is one test entity’s status in each earlier run inside a look-back window, alongside the commit and branch of the run it came from. For fields and response details, see the API reference.

List result histories

This command lists a test entity’s past results, counting back from an anchor date. Use this when you want to tell a new failure from a long-standing flake.
Required arguments:
  • <test_entity_id> - the entity whose history to read, from test-entities list.
  • --project <project_id> - the project the run belongs to.
  • --run <run_id> - the run the entity was recorded in.
The window is --days long and ends at the anchor date. The anchor is --started-at when given, and otherwise the time the entity executed in the run you named, so the default reads backwards from the run you are already looking at.
The flag table shows --days defaulting to 0. That is the flag’s unset value, not a zero-day window: left at 0 the CLI omits the parameter and the server applies its own default of 7 days. Pass a positive number to widen or narrow the window.
Sample output (--json)
The response is not paginated, so the window size is what bounds it. A wide --days on a busy project returns a lot of entries.