DEV Community

TestDino
TestDino

Posted on

Playwright Reporting in 10 Minutes

Clear, actionable test reports can be the difference between shipping confidently and spending hours chasing down flaky test failures. Playwright gives you powerful built-in reporters, but when you combine them with Testdino, you can unlock AI-powered insights, trends, and a single source of truth for your team.

In this guide, you’ll set up Playwright reporting in minutes, generate your first reports, and see how to integrate them with Testdino.

Introduction to Playwright Reporting

Playwright is a modern end-to-end testing framework for web apps. It supports multiple browsers, parallel execution, and, importantly for this post, built in reporters for turning raw test results into human-readable formats.

Good reporting matters because:

  • It helps developers debug more quickly by showing exactly where tests fail.
  • It enhances team collaboration by providing everyone with a shared view of quality.
  • It supports trend analysis when integrated into your CI/CD process.

Setting Up Playwright for Testing

If you haven’t already:

npm init playwright@latest

Enter fullscreen mode Exit fullscreen mode

Choose your language, browsers, and test directory during setup.

Run your first test:

npx playwright test

Enter fullscreen mode Exit fullscreen mode

Basic Playwright Reporters Explained

Playwright supports multiple reporters out of the box:

Reporter & Use Case

list : Readable list of results for local debugging.
line : Concise one-line output per test, ideal for CI logs.
dot : Minimal output (dots for passes/fails), great for noisy pipelines.
html : Full interactive report with screenshots and videos.
json : Machine-readable output for integrations.
junit : XML format for CI tools like Jenkins or Azure DevOps.

Generating Your First Playwright Report

To use a single reporter:

npx playwright test --reporter=html
Enter fullscreen mode Exit fullscreen mode

This generates a playwright-report folder. Open index.html in your browser to view it.

To use multiple reporters:

// playwright.config.js
module.exports = {
  reporter: [['list'], ['html'], ['junit', { outputFile: 'results.xml' }]],
};
Enter fullscreen mode Exit fullscreen mode

Enhancing Reports with Testdino Integration

Playwright reports make local debugging easy, but they’re trapped locally. Testdino makes them accessible anywhere.

With Testdino’s Playwright Report Uploader, you can:

  • Upload reports from CI or local runs into a shared dashboard.
  • See historical trends, pass/fail rates, and performance metrics.
  • Detect and track flaky tests automatically.
  • Get AI-powered root cause analysis on failures (e.g., bug vs. UI change vs. flaky).
  • Correlate failures with commits, branches, and PRs.

Example of CI setup (GitHub Actions):

- name: Run Playwright tests
  run: npx playwright test --reporter=html,junit,json

- name: Upload to Testdino
  run: npx testdino-upload-playwright \
         --path "./playwright-report" \
         --junit "./results.xml" \
         --json "./report.json" \
         --project ${{ secrets.TESTDINO_PROJECT_ID }} \
         --run-name "Playwright ${{ github.sha }}" \
         --branch "${{ github.ref_name }}" \
         --commit "${{ github.sha }}"
  env:
    TESTDINO_API_KEY: ${{ secrets.TESTDINO_API_KEY }}
Enter fullscreen mode Exit fullscreen mode

Sharing and Using the Reports in CI/CD Workflows

Without Testdino: You might store HTML reports as build artifacts or email them around.

With Testdino:

  • Reports are instantly visible to the whole team.
  • You can filter by branch, PR, tag, or test type.
  • Historical trends help spot creeping regressions.
  • Role-specific insights mean QA, Dev, and Managers see the data they care about.

Conclusion

In just a few minutes, you can go from raw Playwright results to rich dashboards, deep reports and AI insights.

✅ Set up Playwright reporters
✅ Generate and view HTML, JSON, or JUnit reports
✅ Push results to Testdino for deep analysis and collaboration

Join the free beta waitlist
View the Playwright Report Uploader on GitHub

Top comments (0)