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-test-workflow

v1.0.0

Published

Global test workflow package for Playwright with custom reporters

Readme

Playwright Test Workflow

A global testing workflow package for Playwright that provides:

  • Automated test grouping by serial numbers (TEST#1, TEST#2, etc.)
  • Custom reporters for text and HTML output
  • Separate reports for each test group
  • Template files for consistent testing across projects

Installation

# Install globally
npm install -g playwright-test-workflow

# Or install locally in your project
npm install --save-dev playwright-test-workflow

Quick Start

# Initialize workflow in your project
test-workflow init my-app

# Run tests
npx playwright test

# Check results in test-results/ folder

Features

Custom Reporters

  • Text Reporter: Generates simple text files with pass/fail status
  • HTML Reporter: Creates beautiful HTML reports with styling
  • Group Reports: Separate files for each test group (TEST#1, TEST#2, etc.)

File Structure

your-project/
├── test.md                    # Test planning document
├── playwright.config.js       # Playwright configuration
├── tests/                     # Test files
├── test-results/              # Generated reports
│   ├── TEST#1-results.txt     # Group-specific text report
│   ├── TEST#1-results.html    # Group-specific HTML report
│   ├── TEST#2-results.txt
│   ├── TEST#2-results.html
│   └── test-results.json      # Overall JSON report
└── reporters/                 # Custom reporter files

Usage

1. Initialize Workflow

test-workflow init [project-name]

2. Plan Your Tests

Edit test.md to add your specific test cases:

### TEST#1 - Core Functionality
- [ ] Feature loads successfully
- [ ] Main functionality works as expected

### TEST#2 - User Interface  
- [ ] UI elements display correctly
- [ ] User interactions are responsive

3. Write Tests

Create test files in tests/ directory. The reporters automatically group tests based on keywords.

4. Run Tests

npx playwright test

5. Check Results

  • Individual group reports: test-results/TEST#1-results.txt, test-results/TEST#1-results.html
  • Overall reports: test-results/test-results.json, playwright-report/index.html

Test Grouping Logic

Tests are automatically grouped based on keywords in test names:

  • TEST#1: load, display, show, heading, button, input, result display
  • TEST#2: calculate, sum, negative, zero, large, decimal
  • TEST#3: empty, non-numeric, precision, error, validation
  • TEST#4: responsive, clickable, accept, update, ui, ux

Configuration

You can customize test grouping patterns in your playwright.config.js:

reporter: [
  ['playwright-test-workflow/reporters/text-reporter.js', { 
    outputFile: 'test-results/test-results.txt',
    testGroupPatterns: {
      'TEST#1': ['login', 'auth', 'signup'],
      'TEST#2': ['dashboard', 'navigation', 'menu'],
      // ... custom patterns
    }
  }]
]

Workflow

  1. Create Feature → 2. Update test.md → 3. Number Tests → 4. Run Tests → 5. Generate Reports → 6. Update test.md with Results

Perfect for maintaining consistent testing across multiple projects!