GitHub

Quickstart

Verify prerequisites, install Zen Reports for Playwright, and generate your first interactive test report in minutes.

Get Zen Reports for Playwright up and running in your project in under a minute.


Prerequisites

Before installing the reporter, ensure your development and continuous integration environments meet the baseline requirements:

  • Node.js >= 22.5.0, 24, or 26: The historical persistence engine requires Node’s built-in node:sqlite module, which is available in Node.js 22.5.0 LTS and later versions. Zero extra native build toolchains are required.
  • @playwright/test: Zen Reports for Playwright operates as a native reporter plugin for the Playwright Test runner.

Installation Not yet published

Install the reporter package along with the companion zr command-line interface as development dependencies in your project:

npm install -D @zen-reports/zen-reporter-playwright @zen-reports/zen-cli

One-Line Setup

By default, Zen Reports for Playwright operates out of the box without requiring manual setup. It applies production-tested defaults, including writing reports to zen-report, enabling the Bamboo color theme, streaming console progress tickers, recording local SQLite history, and aligning with your system dark/light mode:

import { defineConfig } from '@playwright/test';
export default defineConfig({
reporter: '@zen-reports/zen-reporter-playwright',
});

When you need to adjust options such as color themes, history storage backends, terminal ticker styles, or standalone executive summaries, provide an options object or create a dedicated zen.config.json file. For a comprehensive list of all supported options, consult the Configuration guide.


Generate Your First Report

Follow these three steps to run your test suite and inspect the results:

Execute your test suite

Run your Playwright tests using your preferred package manager. Zen Reports streams progress directly to your terminal and prints a formatted summary table upon completion:

npx playwright test
Launch the dashboard

Start the local preview server to review the generated report:

npx zr show

This command initializes a local HTTP server and automatically opens the interactive dashboard in your default browser.

Explore report views

Use the Overview tab to review executive metrics and pass rates. Inspect individual spec results within the Suites and Failures views, and evaluate regression trajectories over time using the History, Insights, and Trends tabs.


Next Steps

Explore advanced workflows and reporter capabilities:

Objective Recommended Guide
Fine-tune reporter behavior Configuration Reference, Config Generator
Automate CI runs Sharded CI Test Runs, Standalone Executive Summaries
Scale across teams Zen Server Deployment