npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

playwright-testreport-io

v1.0.5

Published

Playwright test reporting dashboard with interactive HTML reports, flaky test detection, failure analytics, screenshots, videos, test steps, run insights, PDF/Excel export, and local CI-friendly reporting.

Readme

TestReport.io Local

Playwright Test Reporting Dashboard

npm version npm downloads alias package license GitHub stars

A Playwright-first, local test reporting and analytics dashboard built for modern E2E teams.

A modern, open-source Playwright test reporting tool with interactive HTML dashboards, real-time analytics, flaky test detection, failure analysis, screenshots, videos, test steps, run comparison and PDF/Excel exports — with no cloud account required.

Playwright test reporting dashboard with interactive HTML reports, flaky test detection, failure analytics, screenshots, videos, test steps, run insights, PDF/Excel export, and local CI-friendly reporting.

Built specifically for Playwright.
Runs locally.
No cloud account required.


Why TestReport.io?

  • Playwright-first reporting
  • Modern interactive dashboard
  • Flaky test detection
  • Retry-aware test analysis
  • Failure investigation
  • Screenshots and videos
  • Test step analysis
  • Browser/project analytics
  • Run comparison and trends
  • PDF export
  • Excel export
  • Local-first architecture
  • CI/CD friendly
  • MIT licensed

TestReport.io vs Allure vs ExtentReports

| Capability | TestReport.io Local | Allure Report | ExtentReports | |---|:---:|:---:|:---:| | Playwright-focused | ✅ | ⚠️ Multi-framework | ⚠️ Multi-framework | | Interactive HTML reports | ✅ | ✅ | ✅ | | Playwright dashboard | ✅ | ⚠️ Integration-based | ⚠️ Integration-based | | Flaky test insights | ✅ | ✅ | ⚠️ Depends on integration | | Retry-aware analysis | ✅ | ✅ | ⚠️ Depends on integration | | Screenshots & attachments | ✅ | ✅ | ✅ | | Test step analysis | ✅ | ✅ | ✅ | | Local reporting | ✅ | ✅ | ✅ | | PDF export | ✅ | — | Depends on reporter | | Excel export | ✅ | — | Depends on reporter | | Playwright-oriented analytics | ✅ | ⚠️ | ⚠️ | | Minimal Playwright setup | ✅ | ⚠️ | ⚠️ | | Zero runtime dependencies | ✅ | — | — | | Open source | MIT | Open source | Open source |


Installation

Install either package (same features):

npm install --save-dev testreport.io-local
npm install --save-dev playwright-testreport-io

Quick Start

Playwright config (ESM)

import { defineConfig } from '@playwright/test';

export default defineConfig({
  reporter: [
    ['list'],
    ['html', { open: 'never' }],
    ['testreport.io-local/reporter', { outputDir: 'testreport', fileName: 'results.json' }]
  ],
});

If you installed playwright-testreport-io, use:

['playwright-testreport-io/reporter', { outputDir: 'testreport', fileName: 'results.json' }]

Playwright config (CommonJS)

const { defineConfig } = require('@playwright/test');

module.exports = defineConfig({
  reporter: [
    ['list'],
    ['html', { open: 'never' }],
    ['playwright-testreport-io/reporter', { outputDir: 'testreport', fileName: 'results.json' }]
  ],
});

Run tests

npx playwright test

Reports are written to testreport/<runId>/results.json.


View Your Report

npx playwright-viewer serve

Opens http://localhost:4173 and reads from the testreport folder in your project.

# Custom port
npx playwright-viewer serve --port 4300

# Custom report directory
npx playwright-viewer serve --report-dir ./testreport

Dashboard

Interactive Playwright HTML report with pass / fail / skipped / flaky overview, charts, search, filters, and run history.


Flaky Test Detection

Detects tests that failed on an earlier attempt and passed on retry — the same flaky model Playwright uses. Review attempt history, earlier failure reason, and stabilize flaky cases faster.


Failure Analytics

Investigate failures with clear problem summaries, recommended actions, defect types, top failure reasons, and run comparison (new / fixed / still failing).


Screenshots, Videos & Test Artifacts

Open screenshots, videos, traces, console output, and step-by-step details for each test — all from the local dashboard.


PDF & Excel Export

Export manager-ready PDF summaries and Excel spreadsheets from the dashboard — plus HTML dashboard and JSON exports for sharing and archives.


CI/CD

Works with any CI that runs Playwright. Example GitHub Actions step:

- name: Run Playwright tests
  run: npx playwright test

- name: Upload TestReport.io results
  if: always()
  uses: actions/upload-artifact@v4
  with:
    name: testreport
    path: testreport/

Then download the artifact and open locally:

npx playwright-viewer serve --report-dir ./testreport

Local & Private

Test results stay in your project environment. Nothing is uploaded to a cloud account. Ideal for private repos, regulated teams, and local debugging.


TestReport.io vs Playwright HTML Report

| | Playwright HTML Report | TestReport.io Local | |---|---|---| | Built-in with Playwright | ✅ | Custom reporter + dashboard | | Live analytics dashboard | Basic | ✅ Charts, trends, comparison | | Flaky attempt insights | Limited | ✅ Retry-aware flaky view | | Failure investigation | Error + steps | ✅ Problem / action / defect type | | PDF / Excel export | — | ✅ | | Local-only | ✅ | ✅ |

Use both together if you want — Playwright’s HTML report and TestReport.io can run side by side.


TestReport.io vs Allure

| | Allure | TestReport.io Local | |---|---|---| | Scope | Multi-framework (JS, Python, Java, C#, PHP, Ruby, …) | Playwright-first | | Setup | Allure CLI / adapters | One reporter + npx playwright-viewer serve | | PDF / Excel | Not native | ✅ Built-in | | Runtime deps | Toolchain required | Zero runtime dependencies | | Cloud | Optional / ecosystem | Local only |


TestReport.io vs ExtentReports

| | ExtentReports | TestReport.io Local | |---|---|---| | Scope | Broader reporting APIs, tags, devices, authors | Playwright-first dashboard | | Playwright fit | Integration-based | Native Playwright reporter | | PDF / Excel | Depends on reporter | ✅ Built-in | | Flaky / retry insights | Depends on integration | ✅ Built-in | | Local dashboard | Varies | ✅ Interactive HTML |


Roadmap

  • More dashboard polish and export templates
  • Richer CI examples (GitLab, Azure DevOps, Jenkins)
  • Optional dark theme
  • Community feedback and feature requests welcome via GitHub Issues

Related packages

| npm package | Description | |-------------|-------------| | playwright-testreport-io | Main package | | testreport.io-local | Same product (alternate package name) |


Contributing

Pull requests and issues are welcome.

  1. Fork the repo
  2. Create a branch
  3. Open a PR with a clear description

Repo: github.com/rahul1818/Testreport-io


License

MIT — LICENSE