Skip to main content
Result history answers the question a single failing run cannot: is this failure new, or has this test been flaky for a fortnight? It reports the same 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.
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.

result-histories list

Lists a test entity’s past results, counting back from an anchor date.

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
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.