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-dashboard-reporter

v1.0.7

Published

Real-time Playwright test dashboard with rerun capabilities and comprehensive test reporting

Readme

playwright-dashboard-reporter

Official Playwright reporter for YShvydak Test Dashboard - a full-stack testing dashboard with real-time monitoring, one-click reruns, and comprehensive test reporting.

Features

  • 🔄 Real-time test execution monitoring via WebSocket
  • NEW in v1.0.1: Live progress tracking with currently running tests
  • 📊 Comprehensive test result tracking with execution history
  • 📎 Automatic attachment management (videos, screenshots, traces)
  • 🔍 Enhanced error reporting with code context and line highlighting
  • 🎯 Stable test ID generation for reliable test tracking
  • ⏱️ NEW in v1.0.1: Time estimates (elapsed and remaining)
  • 🏗️ Built-in diagnostics and health checks
  • 🚀 Zero configuration - works out of the box

Installation

npm install --save-dev playwright-dashboard-reporter

Quick Start

1. Set Environment Variable

# .env
DASHBOARD_API_URL=http://localhost:3001

2. Start Dashboard Server

# Clone dashboard repository
git clone https://github.com/shvydak/yshvydak-test-dashboard.git
cd yshvydak-test-dashboard

# Install and start
npm install
npm run dev

The dashboard will be available at:

  • 🌐 Web UI: http://localhost:3000
  • 🔌 API: http://localhost:3001

Results will appear in your Dashboard automatically! 🎉

Configuration Options

interface ReporterOptions {
    apiBaseUrl?: string // Dashboard API URL (default: http://localhost:3001)
    silent?: boolean // Suppress console output (default: false)
    timeout?: number // API request timeout in ms (default: 30000)
}

Environment Variables

The reporter supports the following environment variables:

# Required: Dashboard API endpoint
DASHBOARD_API_URL=http://localhost:3001

## Dashboard Features

When using this reporter, you get access to:

- ✅ **Real-time Test Monitoring** - Watch tests execute live
- ⚡ **Live Progress Tracking** (v1.0.1+) - See which tests are running right now with time estimates
- 🔄 **One-Click Reruns** - Rerun failed tests instantly
- 📈 **Flaky Test Detection** - Identify unstable tests automatically
- 📊 **Timeline Visualization** - View execution trends over time
- 🎥 **Attachment Viewer** - Watch videos, view screenshots, analyze traces
- 📜 **Execution History** - Track all test runs with complete data
- 🔍 **Test Discovery** - Automatically detect all available tests
- 🎯 **Detailed Reporting** - Enhanced error messages with code context

### 🆕 Progress Tracking (v1.0.1+)

The reporter now sends real-time progress updates to the dashboard:

```
🧪 Running Tests              − ✕
━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43%
6 of 14 tests                 43%

✅ Passed: 5        ❌ Failed: 0
⏭️ Skipped: 1       ⏸️ Pending: 8

Currently Running:
🔄 API - Link Budget Item
   e2e/tests/api/api.test.ts
🔄 API - Create Contract
   e2e/tests/api/api.test.ts

⏱️ Elapsed: 3s   Est. remaining: ~4s
```

**Features:**
- See exactly which tests are running
- Track passed/failed/skipped/pending counts in real-time
- Get time estimates for test completion
- Floating panel that can be minimized
- Auto-hides after test completion

**How it works:**
The reporter uses Playwright's `onTestBegin()` and `onTestEnd()` lifecycle hooks to send progress updates to the dashboard via WebSocket. No configuration needed - it works automatically!

## Troubleshooting

### Reporter Not Sending Data

**Symptom:** Tests run but no data appears in Dashboard

**Solution:**

1. Verify Dashboard server is running:
    ```bash
    curl http://localhost:3001/api/health
    ```
2. Check `DASHBOARD_API_URL` environment variable:
    ```bash
    echo $DASHBOARD_API_URL
    ```
3. Run diagnostics:
    ```bash
    curl http://localhost:3001/api/tests/diagnostics
    ```

## API Compatibility

This reporter is compatible with:

- Dashboard API version: **1.x and above**
- Playwright version: **1.40.0 and above**
- Node.js version: **18.0.0 and above**

## Changelog

### v1.0.1 (October 2025)

**New Features:**
- ⚡ Real-time progress tracking with currently running tests
- ⏱️ Time estimates (elapsed and remaining)
- 📊 Live statistics (passed/failed/skipped/pending)
- 🎨 FloatingProgressPanel UI component

**Technical Changes:**
- Added `onTestBegin()` lifecycle hook
- New API endpoint: `POST /api/tests/test-start`
- Enhanced WebSocket event: `test:progress`
- Improved error handling for network failures

**Documentation:**
- Added [Progress Tracking Guide](https://github.com/shvydak/yshvydak-test-dashboard/blob/main/docs/features/PROGRESS_TRACKING.md)
- Updated API documentation

### v1.0.0 (September 2025)

Initial release with core features:
- Real-time test execution monitoring
- Comprehensive test result tracking
- Automatic attachment management
- Enhanced error reporting
- Stable test ID generation

## Development

For Dashboard developers working on the reporter package:

```bash
cd packages/reporter
npm run build      # Build distribution
npm run dev        # Watch mode (auto-rebuild)
npm run type-check # TypeScript validation
```

## Support

- 📚 [Documentation](https://github.com/shvydak/yshvydak-test-dashboard/tree/main/docs)
- 🐛 [Report Issues](https://github.com/shvydak/yshvydak-test-dashboard/issues)
- 💬 [Discussions](https://github.com/shvydak/yshvydak-test-dashboard/discussions)

## License

MIT © YShvydak

---

**Made with ❤️ for the Playwright community**