Skip to main content
Playwright Test includes several built-in reporters that provide different ways to view test results. Configure reporters in your playwright.config.ts file.

Available Reporters

List Reporter

Displays each test on its own line with real-time progress updates.
boolean
default:"false"
Print individual test steps as they execute. Can also be set via PLAYWRIGHT_LIST_PRINT_STEPS environment variable.

Line Reporter

A single-line reporter that updates the current test status in place.
Best suited for CI environments or when you want minimal output.

Dot Reporter

A concise reporter that prints a character for each test.
Symbols:
  • . (green) - Test passed
  • F (red) - Test failed
  • T (red) - Test timed out
  • ° (yellow) - Test skipped
  • ± (yellow) - Flaky test
  • × (gray) - Test will retry

HTML Reporter

Generates an interactive HTML report with detailed test results.
string
default:"'playwright-report'"
Directory for the HTML report. Can be set via PLAYWRIGHT_HTML_OUTPUT_DIR environment variable.
'always' | 'never' | 'on-failure'
default:"'on-failure'"
When to open the HTML report in a browser. Can be set via PLAYWRIGHT_HTML_OPEN environment variable.
string
Host to bind the report server to. Can be set via PLAYWRIGHT_HTML_HOST environment variable.
number
Port to bind the report server to. Can be set via PLAYWRIGHT_HTML_PORT environment variable.
string
default:"'data/'"
Base URL for attachments in the report. Can be set via PLAYWRIGHT_HTML_ATTACHMENTS_BASE_URL environment variable.

JSON Reporter

Outputs test results in JSON format for programmatic consumption.
string
Path to the output JSON file. Can be set via PLAYWRIGHT_JSON_OUTPUT_FILE environment variable.

JUnit Reporter

Generates a JUnit-compatible XML report.
string
Path to the output XML file. Can be set via PLAYWRIGHT_JUNIT_OUTPUT_FILE environment variable.
boolean
default:"false"
Remove ANSI control sequences from output. Can be set via PLAYWRIGHT_JUNIT_STRIP_ANSI environment variable.
boolean
default:"false"
Include the project name in test case names. Can be set via PLAYWRIGHT_JUNIT_INCLUDE_PROJECT_IN_TEST_NAME environment variable.

GitHub Actions Reporter

Integrates with GitHub Actions to show test results inline.
Automatically activated when running in GitHub Actions.

Blob Reporter

Outputs test results in a binary format for merging reports from sharded test runs.
Used with the merge-reports CLI command for parallel test execution across multiple machines.

Using Multiple Reporters

Combine multiple reporters for different outputs:

Environment Variables

Many reporter options can be configured via environment variables: