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

@supatest/webdriverio-reporter

v0.0.4

Published

Supatest WebdriverIO reporter - stream test results to Supatest dashboard

Downloads

222

Readme

@supatest/webdriverio-reporter

Supatest reporter for WebdriverIO - stream test results to the Supatest dashboard in real-time.

Installation

npm install @supatest/webdriverio-reporter --save-dev
# or
yarn add @supatest/webdriverio-reporter --dev
# or
pnpm add @supatest/webdriverio-reporter --save-dev

Requirements

  • Node.js >= 18.0.0
  • WebdriverIO >= 8.0.0

Usage

Add the reporter to your wdio.conf.js or wdio.conf.ts:

// wdio.conf.js
export const config = {
  // ... other config
  reporters: [
    'spec',
    ['@supatest/webdriverio-reporter', {
      projectId: process.env.SUPATEST_PROJECT_ID,
      apiKey: process.env.SUPATEST_API_KEY,
    }]
  ],
};

TypeScript

// wdio.conf.ts
import type { Options } from '@wdio/types';

export const config: Options.Testrunner = {
  // ... other config
  reporters: [
    'spec',
    ['@supatest/webdriverio-reporter', {
      projectId: process.env.SUPATEST_PROJECT_ID,
      apiKey: process.env.SUPATEST_API_KEY,
    }]
  ],
};

Environment Variables

| Variable | Description | |----------|-------------| | SUPATEST_API_KEY | Required. Your Supatest API key | | SUPATEST_PROJECT_ID | Required. Your project identifier for organizing test runs | | SUPATEST_API_URL | Optional. Custom API endpoint | | SUPATEST_DRY_RUN | Optional. Set to true to enable dry-run mode |

Configuration Options

All options can be passed in the reporter config or set via environment variables.

| Option | Type | Default | Description | |--------|------|---------|-------------| | projectId | string | - | Required. Your Supatest project ID | | apiKey | string | - | Required. Your Supatest API key | | apiUrl | string | https://code-api.supatest.ai | API endpoint URL | | uploadAssets | boolean | true | Whether to upload screenshots and other attachments | | maxConcurrentUploads | number | 5 | Maximum concurrent attachment uploads | | retryAttempts | number | 3 | Number of retry attempts for failed API calls | | timeoutMs | number | 30000 | Timeout for API calls in milliseconds | | dryRun | boolean | false | Log payloads instead of sending to API |

Stable Test IDs

For consistent test tracking across runs, you can assign stable IDs to tests:

describe('Login', () => {
  it('@id:TC-001 should login with valid credentials', async () => {
    // Test implementation
  });

  it('@id:TC-002 should show error for invalid password', async () => {
    // Test implementation
  });
});

If no explicit ID is provided, the reporter generates a stable hash based on the spec file path, suite hierarchy, and test title.

CI/CD Integration

The reporter automatically detects and captures CI/CD context from:

  • GitHub Actions
  • GitLab CI
  • Jenkins
  • CircleCI
  • Travis CI
  • Buildkite
  • Azure Pipelines

Git information (branch, commit, author) is automatically extracted from both CI environment variables and local git repository.

Features

  • Real-time test result streaming
  • Browser/capability information capture
  • Screenshot and attachment uploads
  • Git and CI/CD metadata collection
  • Retry tracking and flaky test detection
  • Non-blocking uploads (won't slow down your tests)
  • Graceful error handling

Example

// wdio.conf.js
export const config = {
  runner: 'local',
  specs: ['./test/specs/**/*.js'],
  capabilities: [{
    browserName: 'chrome'
  }],
  framework: 'mocha',
  reporters: [
    'spec',
    ['@supatest/webdriverio-reporter', {
      projectId: 'proj_abc123',
      apiKey: 'sk_test_xyz789',
    }]
  ],
  mochaOpts: {
    ui: 'bdd',
    timeout: 60000
  }
};

License

ISC

Development

Running Tests

Unit Tests:

pnpm test              # Run tests in watch mode
pnpm test:run          # Run tests once
pnpm test:coverage     # Run tests with coverage

Integration Tests:

pnpm test:integration  # Build reporter and run full E2E test suite

This will:

  1. Build the reporter package (pnpm build)
  2. Run the WebDriverIO test suite in reporter-test-suites/webdriverio-saucedemo/
  3. Verify data flows to your local API (requires API running on http://localhost:9090)

Quick Development Loop:

# Terminal 1: Start local API
cd api && pnpm dev

# Terminal 2: Build reporter, run integration tests
cd webdriverio-reporter
pnpm test:integration

Test Suite Configuration

The integration test suite uses .env configuration:

# reporter-test-suites/webdriverio-saucedemo/.env
SUPATEST_API_URL=http://localhost:9090
SUPATEST_API_KEY=sk_test_...
SUPATEST_PROJECT_ID=proj_local_swaglabs
SUPATEST_DRY_RUN=false

Verifying Integration Tests

After running pnpm test:integration, you should see:

  • [supatest] Run <run-id> started (X spec files)
  • [supatest] Waiting for N pending uploads...
  • [supatest] Run <run-id> completed

Check your local API dashboard at http://localhost:3000 to see the test results.