Skip to content

Trace

Trace = "on" | "off" | "retain-on-failure"

Defined in: types.ts:77

Trace recording mode for test execution.

Traces capture detailed information about test execution including screenshots, DOM snapshots, and network activity.

Available options (subset of Playwright’s trace options):

  • 'on' - Record traces for all tests
  • 'off' - Do not record traces
  • 'retain-on-failure' - Record traces only for failed tests (default)
'retain-on-failure'