GitHub

Core Commands

Report preview servers, Markdown CI summaries, and environment diagnostics with zr.

Core CLI commands for launching the local report server, generating Markdown summaries for pull requests, and inspecting runtime diagnostics.


Report & Environment Commands

Command Description
npx zr show Launch the local HTTP report server (127.0.0.1) and open index.html in your default browser.
npx zr summary Generate a concise Markdown summary snippet of the latest test run with environment info (ideal for CI PR comments or job steps).
npx zr env Print diagnostic system information (Node.js, OS, @playwright/test, and @zen-reports/zen-reporter-playwright versions).
npx zr help Print standard CLI help and subcommand descriptions.

zr show

Launches a lightweight local static web server to preview your generated report in a browser.

Terminal window
npx zr show
  • Binds securely to 127.0.0.1 on an available port.
  • Automatically launches your default web browser directly to index.html.
  • Serves assets, trace files, and screenshots without CORS restrictions.

zr summary

Outputs a clean Markdown table summarizing the latest test run. Designed specifically for CI pipelines to publish job summaries or pull request comments:

Terminal window
npx zr summary

Example Markdown Output

### 📊 Zen Reports Test Summary
| Status | Total | Passed | Flaky | Failed | Skipped | Duration |
| :-------- | :---- | :----- | :---- | :----- | :------ | :------- |
| ✅ PASSED | 42 | 41 | 1 | 0 | 0 | 18.4s |
- **Project**: Web App E2E
- **Run**: CI Build #148
- **Commit**: `a3b12f` by @developer

zr env

Prints detailed runtime and environment diagnostics for debugging configuration issues or reporting bugs:

Terminal window
npx zr env

Outputs active Node.js version, operating system architecture, @playwright/test version, installed reporter version, and resolved package manager (npm, pnpm, yarn, or bun).