TestDino

Free Tools / Playwright Trace Configurator

Playwright Trace Configurator

Pick what Playwright captures in traces, see how large your CI artifacts will get before the run, and copy a ready-to-use config snippet.

Trace settings

Pick what to capture. Size and config update as you change them.

Live Calculation

Record every test, discard traces for passing ones.

Estimated CI artifact size

Total size per run
5,200 KB

10 traces kept · 520 KB per trace · 10 failed tests

Per-trace breakdown

Screenshots
180 KB
Snapshots
315 KB
Sources
25 KB
Attachments
0 KB

Recommendations

Balanced config. You will capture what you need to debug failures without flooding CI artifact storage.

All modes compared

Same settings, every Playwright trace mode side by side. Your current pick is highlighted.

ModeTraces keptTotal size
off00 KB
retain-on-failure105.1 MB
retain-on-first-failure105.1 MB
on-first-retry105.1 MB
retain-on-failure-and-retries3015 MB
on-all-retries2010 MB
on200102 MB

Your config, ready to paste

Playwright 1.59, retain-on-failure mode. Paste into your playwright.config.ts.

typescript
import { defineConfig } from "@playwright/test";

// Generated by TestDino Playwright Trace Configurator
// https://testdino.com/tools/playwright-trace-configurator

export default defineConfig({
  use: {
    trace: {
      mode: "retain-on-failure",
      screenshots: true,
      snapshots: true,
      sources: true,
      attachments: false,
    },
  },
});

Every toggle maps to a real Playwright trace option. Full list in the official Playwright docs.

How this works?

How we estimate Playwright trace size and build your config.

Pick your trace mode

Choose when Playwright records a trace: every test, only failures, on the first retry, or never. Each mode changes how many trace files your CI keeps.

Set your test parameters

Tell the tool how many tests you run, how complex the pages are, how many actions each test takes, and what failure rate you expect. These drive the per-trace size estimate.

See the size estimate

The tool calculates how many trace files your mode keeps and multiplies by the per-trace size from screenshots, DOM snapshots, sources, and attachments.

Copy your config

Once the numbers look right, copy the generated playwright.config.ts snippet. It reflects exactly the mode and sub-options you chose.

FAQs

Within roughly 30% of a real run. Screenshot size depends on your actual UI; snapshot size depends on DOM depth. The estimate is built from median values across real Playwright traces, not worst-case peaks. Run the tool against your actual failure rate and complexity and compare to a real CI artifact.