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 🙏

© 2025 – Pkg Stats / Ryan Hefner

wdio-azure-devops-reporter

v1.0.3

Published

A WebdriverIO reporter and service for integrating test results and artifacts with Azure DevOps Test Plans.

Readme

wdio-azure-devops-reporter

A custom WebdriverIO reporter and service for integrating test results and artifacts (screenshots, HTML/Allure reports, etc.) with Azure DevOps Test Plans.

Features

  • Uploads test results and failure screenshots to Azure DevOps Test Plans
  • Attaches HTML/Allure reports to all test results in a run
  • Flexible configuration for suite mapping, run naming, and artifact paths
  • Works as both a WDIO reporter and service

Installation

npm install wdio-azure-devops-reporter --save-dev

Usage

  1. Add the reporter/service to your wdio.conf.js:
import WdioAzureReporter, { AzureDevOpsService } from 'wdio-azure-devops-reporter';

const azureDevOpsConfig = {
    organization: 'your-azure-org',
    project: 'your-azure-project',
    planId: 1234, // Azure DevOps Test Plan ID
    pat: process.env.AZURE_PAT, // Personal Access Token
    suiteId: 5678, // Directly specify a suiteId
    // suiteMapping: { // (optional) Map WDIO suite names to Azure suite IDs
    //     e2e: 5678,
    //     regression: 91011
    // },
    runName: 'My Custom Test Run', // (optional) Custom run name
    attachReport: {
        type: 'jsonHtml', // or 'allure'
        path: '.artifacts/test-report.html',
        name: 'test-report.html',
        comment: 'HTML JSON Report',
        iterationId: 1
    }
};

export const config = {
    // ...
    services: [
        [AzureDevOpsService, azureDevOpsConfig]
    ],
    reporters: [
        // ...
        [WdioAzureReporter, {
            ...azureDevOpsConfig,
            screenshotPath: '.artifacts/screenshots' // (optional)
        }]
    ],
    // ...
};
  1. Environment Variables:
  • Set your Azure DevOps Personal Access Token as an environment variable (recommended):
export AZURE_PAT=your-pat-here

Configuration Options

| Option | Type | Description | |----------------|----------|-------------| | organization | string | Azure DevOps organization name | | project | string | Azure DevOps project name | | planId | number | Azure DevOps Test Plan ID | | pat | string | Azure DevOps Personal Access Token | | suiteId | number | Directly specify a suiteId | | suiteMapping | object | (optional) Map WDIO suite names to Azure suite IDs | | runName | string | (optional) Custom run name for the test run | | attachReport | object | (optional) Attach a report to all test results. See below. | | screenshotPath | string | (optional, reporter only) Where to save failure screenshots |

attachReport object

| Option | Type | Description | |-------------|--------|-------------| | type | string | 'jsonHtml', 'allure', etc. | | path | string | Path to the report file | | name | string | Name for the attachment in Azure DevOps | | comment | string | (optional) Attachment comment | | iterationId | number | (optional) Iteration ID |

Example

const azureDevOpsConfig = {
    organization: 'testOrganization',
    project: 'testProject',
    planId: 1234,
    pat: process.env.AZURE_PAT,
    suiteMapping: {
        e2e: 1235,
        homePage: 1236,
        authentication: 1237,
    },
    runName: 'Nightly Regression',
    attachReport: {
        type: 'jsonHtml',
        path: '.artifacts/test-report.html',
        name: 'test-report.html',
        comment: 'HTML JSON Report',
        iterationId: 1,
    }
};

License

MIT