Setup Playwright Trace and Report
Set up tracing and reports for your Playwright tests:
- In the
playwright.ts.config
file add the following configurations
reporter:
[ ['html', { outputFolder: 'pw-report' }],
['json', { outputFolder: 'pw-report', outputFile: 'report.json' }]
],
- Inside the
use
configuration, switch the value for thetrace
configuration fromon-first-retry
toon