115 / 139 · 13 Browser Automation with Playwright · Production Framework← prev⊞ allnext →☰ Read as one page
13.5Custom Reporters
Playwright supports multiple reporters simultaneously:
// playwright.config.ts
export default defineConfig({
reporter: [
['list'], // Console output
['html', { open: 'never' }], // HTML report
['json', { outputFile: 'results.json' }], // Machine-readable
['junit', { outputFile: 'results.xml' }], // CI integration
],
});