Configuration Reference
Every reporter option for @zen-reports/zen-reporter-playwright: types, defaults, validation rules, and schema definitions.
Zen Reports for Playwright is configured in playwright.config.ts (or playwright.config.js). It works out of the box with a one-line drop-in setup—no options required—and offers advanced options via tuple syntax.
Basic vs. Advanced Setup
One-Line Setup
By default, Zen Reports for Playwright operates out of the box with sensible defaults (outputDir: 'zen-report', theme: 'Bamboo', automatic console tickers, local SQLite history, and OS-driven dark mode):
import { defineConfig } from '@playwright/test';
export default defineConfig({ reporter: '@zen-reports/zen-reporter-playwright',});Advanced Setup (Tuple Syntax)
To customize reporter behavior, pass an options object using Playwright’s reporter tuple syntax. The options object is a plain JavaScript object:
import { defineConfig } from '@playwright/test';
const zenOptions = { outputDir: 'zen-report', projectName: 'E2E Test Automation', testRunName: 'Release Candidate #{N}', theme: 'Oasis', darkMode: false, singleSummaryFile: true, consoleProgress: 'auto', openAutomatically: 'on-failure-only',};
export default defineConfig({ reporter: [['@zen-reports/zen-reporter-playwright', zenOptions]],});Interactive Generator: You can also tune these options visually. Click Config Generator at the bottom of the dashboard sidebar to adjust settings interactively and copy the exact TypeScript, JavaScript, or JSON configuration snippet. See the Config Generator guide.
Configuration Options Reference
| Option | Type | Default | Description |
|---|---|---|---|
outputDir |
string |
"zen-report" |
Directory where the report bundle, media attachments, and SQLite database are saved. |
projectName |
string |
"Test Automation Project" |
Project title displayed in the dashboard navigation header. |
testRunName |
string |
"Test Run #{N}" |
Dynamic run title displayed in the top bar. {N} is dynamically replaced with the monotonic run sequence number derived from the most recent run in history.db. |
theme |
'Bamboo' | 'Lotus' | 'Oasis' |
"Bamboo" |
Initial color theme applied to the web dashboard. See Themes & Styling. |
darkMode |
'system' | 'light' | 'dark' | boolean |
'system' |
Initial dark/light mode: 'system' follows the OS preference, 'dark'/true forces dark, 'light'/false forces light. |
singleSummaryFile |
boolean |
false |
When true, generates a standalone summary.html and summary.json file designed for executive summaries and CI artifact attachments. See Executive Summary. |
minimalReport |
boolean |
false |
When true, disables history tracking and suppresses analytical charts (Trends, Insights, Projects) for an ultra-lean report. |
enableHistory |
'auto' | boolean |
"auto" |
Simple history switch. "auto" records to local SQLite and only warns on failure. true additionally requires @duckdb/node-api. false disables history. |
history |
HistoryConfig |
unset | Advanced history configuration: true, false, { mode: 'local', ... }, { mode: 'remote', ... }, or { mode: 'off' }. See Storage & History. |
consoleProgress |
'auto' | 'line' | 'dot' | boolean |
"auto" |
Terminal execution ticker style. See Console & Terminal. |
openAutomatically |
'always' | 'never' | 'on-failure-only' |
"never" |
Controls whether to automatically open the report in a web browser upon test completion. |
systemNotices |
string[] |
unset | Custom environment notices, CI runner announcements, or operational alerts displayed in the Notification Center. |
packageManagerappears in the resolved configuration but is auto-detected from the project environment; it is not a user-facing option.
Key Validation & Misspelling Suggestions
When resolving reporter configuration, unexpected or misspelled properties are validated against recognized schema keys. If a key is unrecognized, a warning notice is emitted indicating the closest matching key using Levenshtein distance:
[Zen Reports for Playwright Warning] Unknown configuration key "thme". Did you mean "theme"?These configuration warnings are surfaced in the terminal, recorded in the report summary, and displayed inside the Notification Center on the dashboard.
Next Steps
Explore dedicated configuration sections:
| Topic | Description & Guide |
|---|---|
| Storage & History | Local embedded SQLite vs. remote PostgreSQL team hosting: Storage & History |
| Themes & Styling | Nature-inspired themes and dark mode behavior: Themes & Styling |
| Console & Terminal | Live execution tickers and CI progress streamers: Console & Terminal |
| Executive Summary | Lightweight single-file summary.html outputs: Executive Summary |
| Recipes & Presets | Ready-to-use configs for CI, local development, and JSON files: Recipes & Presets |