Fault0 Logo

Reporter

Integrating Playwright tests with Fault0

Fault0 Playwright Reporter

The Fault0 Playwright Reporter is a custom reporter that integrates your existing Playwright tests with the Fault0 dashboard. It captures comprehensive test execution data and sends it to Fault0 for centralized tracking and analysis.

Installation

TBD: Package installation instructions

npm install fault0-playwright-reporter

Configuration

TBD: Detailed configuration options

Add the reporter to your playwright.config.ts:

import { defineConfig } from '@playwright/test';
 
export default defineConfig({
  reporter: [
    ['fault0-playwright-reporter', {
      // Configuration options
    }]
  ],
  // ... other config
});

What Gets Reported

The Fault0 reporter automatically captures:

  • Test Results: Pass/fail status for each test
  • Execution Time: Duration of each test and overall run
  • Screenshots: Automatic screenshots on test failures
  • Videos: Video recordings of test executions (if enabled)
  • Traces: Detailed Playwright traces for debugging
  • Errors: Stack traces and error messages
  • Console Logs: Browser console output during test execution

Environment Variables

TBD: Required environment variables

Set your Fault0 API key as an environment variable:

FAULT0_API_KEY=your_api_key_here

Running Tests

Once configured, simply run your Playwright tests as usual:

npx playwright test

Results will automatically appear in your Fault0 dashboard.

On this page