playwright.config.ts file.
Available Reporters
List Reporter
Displays each test on its own line with real-time progress updates.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.Dot Reporter
A concise reporter that prints a character for each test..(green) - Test passedF(red) - Test failedT(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.Directory for the HTML report. Can be set via
PLAYWRIGHT_HTML_OUTPUT_DIR environment variable.When to open the HTML report in a browser. Can be set via
PLAYWRIGHT_HTML_OPEN environment variable.Host to bind the report server to. Can be set via
PLAYWRIGHT_HTML_HOST environment variable.Port to bind the report server to. Can be set via
PLAYWRIGHT_HTML_PORT environment variable.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.Path to the output JSON file. Can be set via
PLAYWRIGHT_JSON_OUTPUT_FILE environment variable.JUnit Reporter
Generates a JUnit-compatible XML report.Path to the output XML file. Can be set via
PLAYWRIGHT_JUNIT_OUTPUT_FILE environment variable.Remove ANSI control sequences from output. Can be set via
PLAYWRIGHT_JUNIT_STRIP_ANSI environment variable.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.Blob Reporter
Outputs test results in a binary format for merging reports from sharded test runs.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:Related
- Test Reporter API - Create custom reporters
- Configuration - Full configuration reference
