Skip to main content
The Playwright Reporter is currently in public beta. Contact the Checkly team for support or feedback. Expect breaking changes, features in development, and possible bugs.
CLI interface in front of the Playwright test session report
Use the Playwright Reporter to seamlessly integrate Playwright test results with Checkly monitoring. Automatically upload test results, screenshots, videos, and traces to gain visibility into your application’s health across test runs.
Before using the Playwright reporter, ensure you:
  • use Node.js >= 18.0.0
  • use Playwright >= 1.40.0
  • have Checkly account (sign up)

Install the Playwright Reporter

Install the Playwright reporter package via npm.

How to get started

Create an API key and get your Account ID

To start pushing your Playwright test reports to Checkly you need to authenticate the reporter with your Checkly Account ID and an API Key.
  1. Log in to Checkly
  2. Navigate to your account Settings to get your account id (Account Settings > General)
  3. Create a new API key in your user settings (User Settings > Api Keys)
Define your account id and API key as environment variables.
The Playwright reporter will automatically pick up the environment variables CHECKLY_API_KEY and CHECKLY_ACCOUNT_ID.
If you can’t set environment variables use inline environment variables when running Playwright:

Add the Playwright reporter to your Playwright configuration

playwright.config.ts
Ensure that you also enabled the native json reporter with the described outputFile before registering the Checkly Playwright Reporter. The Checkly Playwright Reporter relies on the JSON reporter output to analyze and upload the test results. The best terminal output uses all 3: list, json and checkly/playwright-reporter.

Run your tests and automatically upload results to Checkly

Run your test with the standard Playwright test command:
Access the Playwright test report via the provided URL:

Configuration

Environment Variables

The reporter relies on the following environment variables to authenticate with the Checkly infrastructure:
Without providing these two environment variables, the reporter won’t upload the results and only create a local ZIP file.

Additional Reporter Configuration

playwright.config.ts
Security Note: Always use environment variables to configure the Playwright reporter. Never commit API keys to version control.

How does the Playwright Reporter work?

The Checkly Playwright reporter creates Playwright Check Suite level test sessions. The test session result will include all run tests in a single report named after your project directory:
All the created test results and artifacts are bundled together in a single session for easy analysis. What gets uploaded:
  • Test results and status (passed/failed/flaky)
  • Test execution duration
  • Screenshots (on failure or explicit capture)
  • Snapshots
  • Videos (full recordings)
  • Traces (Playwright traces for debugging)
  • Complete JSON test report
If your Checkly reports don’t include traces or videos, ensure that your playwright.config.ts enables these Playwright features. The reporter only uploads what your Playwright test run created.

Advanced Usage Examples

Dry Run Mode (no upload or API calls)

Use dryRun mode to create ZIP files without uploading your test results to Checkly:
playwright.config.ts
The dryRun mode is perfect for:
  • Local testing and validation
  • CI/CD pipelines without credentials
  • Debugging ZIP file contents

Conditional Dry Run (CI vs Local)

Automatically use dry run in CI, but enable API calls and uploads locally:
playwright.config.ts
This dryRun mode allows you to:
  • Test locally with API credentials when available
  • Run validation in CI without requiring secrets
  • Keep ZIP files in CI for artifact upload

Run the Playwright Reporter in CI/CD

Execute your Playwright tests in CI/CD and use the Playwright reporter to store all your test artifacts in Checkly.