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/wdio-appium-reporter

v0.0.4

Published

Supatest Appium reporter - stream mobile test results to Supatest dashboard

Readme

@supatest/wdio-appium-reporter

WebdriverIO reporter for Appium that streams mobile test results to the Supatest dashboard in real-time. Captures device metadata, screenshots, screen recordings, and CI/Git context for iOS and Android runs.

Requirements

  • Node.js >= 18.0.0
  • WebdriverIO >= 8.0.0
  • Appium >= 2.0.0
  • @wdio/appium-service

Installation

npm install @supatest/wdio-appium-reporter --save-dev
# or
pnpm add @supatest/wdio-appium-reporter --save-dev

Configuration

Add to your wdio.conf.ts:

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

export const config: Options.Testrunner = {
  services: [
    ['appium', {
      command: 'appium',
      args: { relaxedSecurity: true },
    }],
  ],

  reporters: [
    'spec',
    ['@supatest/wdio-appium-reporter', {
      projectId: process.env.SUPATEST_PROJECT_ID,
      apiKey: process.env.SUPATEST_API_KEY,
    }],
  ],
};

iOS example

const iosCapabilities = {
  platformName: 'iOS',
  'appium:deviceName': 'iPhone 15 Pro',
  'appium:platformVersion': '17.2',
  'appium:automationName': 'XCUITest',
  'appium:app': '/path/to/MyApp.app',
  'appium:bundleId': 'com.example.myapp',
};

Android example

const androidCapabilities = {
  platformName: 'Android',
  'appium:deviceName': 'emulator-5554',
  'appium:platformVersion': '13',
  'appium:automationName': 'UiAutomator2',
  'appium:app': '/path/to/MyApp.apk',
  'appium:appPackage': 'com.example.myapp',
  'appium:appActivity': 'com.example.myapp.MainActivity',
};

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 (default: https://code-api.supatest.ai) | | SUPATEST_DRY_RUN | Optional. Set to true to log payloads instead of sending |

Configuration Options

| 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 | Upload screenshots and screen recordings | | screenshotDir | string | — | Watch this directory for screenshots saved via browser.saveScreenshot() | | maxConcurrentUploads | number | 5 | Maximum concurrent asset uploads | | retryAttempts | number | 3 | Retry attempts for failed API calls | | timeoutMs | number | 30000 | Timeout for API calls in milliseconds | | dryRun | boolean | false | Log payloads without sending to API |

Features

Mobile Metadata

Automatically captured from Appium capabilities:

  • platformName, deviceName, platformVersion
  • automationName (XCUITest / UiAutomator2)
  • udid, bundleId, appPackage, appActivity
  • Appium version and session ID

Screenshot Capture

Screenshots are automatically captured and uploaded when you call:

await browser.saveScreenshot('./screenshots/my-screen.png');

The reporter intercepts the saveScreenshot and takeScreenshot commands and uploads the images as test attachments.

Screen Recording

Screen recordings are captured when you use Appium's recording API:

await driver.startRecordingScreen({ videoType: 'mp4', videoQuality: 'low' });
// ... run your test steps ...
const video = await driver.stopRecordingScreen();

The reporter intercepts stopRecordingScreen and uploads the MP4 as a test attachment.

Stable Test IDs

Assign stable IDs in test titles for consistent tracking across runs:

it('should login with valid credentials @id:TC-M-001 @priority:critical', async () => {
  // ...
});

Supported tags: @id:, @priority:, @owner:, @feature:

CI/CD Integration

Automatically detects and captures context from:

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

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

Example wdio.conf.ts

import { existsSync, mkdirSync } from 'node:fs';
import type { Options } from '@wdio/types';

export const config: Options.Testrunner = {
  runner: 'local',
  specs: [['./test/specs/**/*.ts']],  // grouped = one Appium session
  maxInstances: 1,

  capabilities: [{
    platformName: 'iOS',
    'appium:deviceName': 'iPhone 15 Pro',
    'appium:platformVersion': '17.2',
    'appium:automationName': 'XCUITest',
    'appium:app': '/path/to/MyApp.app',
    'appium:bundleId': 'com.example.myapp',
    'appium:newCommandTimeout': 240,
  }],

  services: [
    ['appium', {
      command: 'appium',
      args: { relaxedSecurity: true, log: './logs/appium.log' },
    }],
  ],

  framework: 'mocha',
  reporters: [
    'spec',
    ['@supatest/wdio-appium-reporter', {
      projectId: process.env.SUPATEST_PROJECT_ID,
      apiKey: process.env.SUPATEST_API_KEY,
      apiUrl: process.env.SUPATEST_API_URL,
      uploadAssets: true,
      screenshotDir: './screenshots',
      dryRun: process.env.SUPATEST_DRY_RUN === 'true',
    }],
  ],

  mochaOpts: { ui: 'bdd', timeout: 180000 },

  onPrepare() {
    if (!existsSync('./screenshots')) mkdirSync('./screenshots', { recursive: true });
    if (!existsSync('./logs')) mkdirSync('./logs', { recursive: true });
  },
};

Development

Running Tests

pnpm test:run       # Unit tests (Vitest)
pnpm test:coverage  # Unit tests with coverage

Integration Tests

pnpm test:integration  # Build + run full E2E against a real device/emulator

Requires:

  • A running iOS Simulator or Android emulator
  • The target app installed
  • Local API running on http://localhost:9090

Dry-Run Verification

To verify the reporter data flow without a real device:

npx tsx scripts/dry-run-verify.ts

This exercises the full reporter lifecycle with synthetic Android and iOS data — no device or API key required.

Test Suite Configuration

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

# Platform (ios | android)
PLATFORM=ios
IOS_UDID=<simulator-udid>
IOS_APP_PATH=/path/to/MyApp.app

License

ISC