Skip to main content

Setup Playwright Trace and Report

Set up tracing and reports for your Playwright tests:

  1. In the playwright.ts.config file add the following configurations
reporter: 
[ ['html', { outputFolder: 'pw-report' }],
['json', { outputFolder: 'pw-report', outputFile: 'report.json' }]
],
  1. Inside the use configuration, switch the value for the trace configuration from on-first-retry to on