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.
Maintainers
Keywords
Readme
TestReport.io Local
Playwright Test Reporting Dashboard
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-localnpm install --save-dev playwright-testreport-ioQuick 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 testReports are written to testreport/<runId>/results.json.
View Your Report
npx playwright-viewer serveOpens 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 ./testreportDashboard
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 ./testreportLocal & 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.
- Fork the repo
- Create a branch
- Open a PR with a clear description
Repo: github.com/rahul1818/Testreport-io
License
MIT — LICENSE
