GitHub

Console & Terminal

Terminal progress tickers, live execution streamers, and CLI console configuration.

Zen Reports for Playwright includes an integrated terminal progress engine that eliminates the need to run extra console reporters (such as list or dot) alongside Zen Reports.


Console Progress Modes

The consoleProgress option controls how execution status is printed to stdout:

import { defineConfig } from '@playwright/test';
export default defineConfig({
reporter: [
[
'@zen-reports/zen-reporter-playwright',
{
consoleProgress: 'auto', // 'auto' | 'line' | 'dot' | boolean
},
],
],
});

Options

  • 'auto' (Default): Automatically detects the environment. Uses the interactive single-line progress bar (line) in local interactive TTY sessions and switches to minimal dot streaming (dot) in non-interactive CI environments.
  • 'line': An interactive, dynamic single-line ticker displaying active worker counts, completion percentage, and live pass/fail tallies.
  • 'dot': A clean, log-friendly dot streamer (. for pass, F for fail, S for skip) optimized for CI build logs.
  • false: Completely disables in-flight progress tickers. The final test execution summary table is still printed upon completion.

Environment-Specific Configuration

You can dynamically tune console progress according to whether your tests are running locally or in CI:

export default defineConfig({
reporter: [
[
'@zen-reports/zen-reporter-playwright',
{
consoleProgress: process.env.CI ? 'dot' : 'line',
},
],
],
});