TestingDocs.com logoTestingDocs.com
Automation learning lab
TestingDocs • Self-paced course

Playwright Automation
Self Study Guide

Start from zero. Learn JavaScript and TypeScript, automate browsers, and build reliable end-to-end tests.

60 chaptersBeginner friendlyHands-on practice
Playwright / Chapter 52 of 60~18 min • Beginner
Chapter 52Playwright

Reports, retries and flaky tests

Reporters summarize outcomes and artifacts. A test that fails initially and passes on retry is classified as flaky by Playwright. Retries are useful diagnostics but should not hide root causes. A configured HTML reporter can display test details.

How it works

Step-by-step walkthrough

  1. Configure an HTML reporter
  2. Run tests with retries
  3. Open the report

Example

Terminal
npx playwright test --reporter=html --retries=1
npx playwright show-report
Expected result: HTML report opens with test outcomes
💡 Point to remember
Investigate flaky tests rather than simply increasing retries.

Screenshot walkthrough

HTML test report
HTML test report • Official Playwright documentation. Source and walkthrough

✎ Your practice task

Find the error message and duration of a failed test.

Knowledge check

What is a test that fails first and passes on retry called?

🌐 Continue learning