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

@testurio/reporter-allure

v0.5.0

Published

Allure reporter for testurio - TestOps integration

Readme

@testurio/reporter-allure

Allure reporter for Testurio - converts test results to Allure-compatible format for interactive HTML reports.

Installation

npm install @testurio/reporter-allure
# or
pnpm add @testurio/reporter-allure

Usage

Basic Usage

import { TestScenario, testCase, Client, Server, HttpProtocol } from 'testurio';
import { AllureReporter } from '@testurio/reporter-allure';

const scenario = new TestScenario({
  name: 'User API Tests',
  components: [server, client],
  reporters: [
    new AllureReporter({
      resultsDir: 'allure-results',
    }),
  ],
});

await scenario.run(getUserTest);

With Metadata (BDD Hierarchy)

const getUserTest = testCase('Get user by ID', (test) => {
  const api = test.use(client);
  const mock = test.use(server);

  // step 1 
  api.request('getUser', { method: 'GET', path: '/users/1' });

  // step 2
  mock.onRequest('getUser').mockResponse(() => ({
    code: 200,
    body: { id: 1, name: 'Alice' },
  }));

  // step 3
  api.onResponse('getUser').assert((res) => res.body.name === 'Alice');
})
  .id('TC-001')
  .epic('User Management')
  .feature('User API')
  .story('Get User')
  .severity('critical')
  .tags('api', 'smoke', 'regression')
  .issue('BUG-123')
  .description('Verifies that user can be retrieved by ID');

Full Configuration

const scenario = new TestScenario({
  name: 'Full API Test Suite',
  components: [server, client],
  reporters: [
    new AllureReporter({
      // Output location
      resultsDir: './reports/allure-results',

      // Environment info (shown in report)
      environmentInfo: {
        'Node.js': process.version,
        'OS': process.platform,
        'Environment': 'CI',
        'Build': process.env.BUILD_NUMBER || 'local',
      },

      // Default labels for all tests
      labels: [
        { name: 'owner', value: 'team-api' },
        { name: 'layer', value: 'integration' },
      ],

      // Link patterns
      tmsUrlPattern: 'https://testrail.example.com/index.php?/cases/view/{id}',
      issueUrlPattern: 'https://jira.example.com/browse/{id}',

      // Default BDD hierarchy
      defaultEpic: 'E-Commerce Platform',
      defaultFeature: 'API',

      // Payload capture
      includePayloads: 'both',
      maxPayloadSize: 500,
    }),
  ],
});

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | resultsDir | string | "allure-results" | Output directory for Allure results | | environmentInfo | Record<string, string> | - | Environment info written to environment.properties | | labels | Label[] | - | Default labels applied to all test cases | | tmsUrlPattern | string | - | URL pattern for TMS links (use {id} placeholder) | | issueUrlPattern | string | - | URL pattern for issue links (use {id} placeholder) | | defaultEpic | string | - | Default epic for all tests | | defaultFeature | string | - | Default feature for all tests | | includePayloads | "parameters" | "attachments" | "both" | - | Include recorded payloads in Allure steps | | maxPayloadSize | number | 1000 | Maximum payload size for "parameters" mode |

Generating Reports

After running tests, generate the HTML report using the Allure CLI:

# Install Allure CLI (if not already installed)
npm install -g allure-commandline

# Generate HTML report from results
allure generate allure-results -o allure-report

# Open report in browser
allure open allure-report

# Or serve directly (generates and opens in one step)
allure serve allure-results

Protocol Agnostic

The reporter works identically across all Testurio protocols:

  • HTTP
  • WebSocket
  • TCP
  • gRPC
  • DataSource (Redis, PostgreSQL, etc.)

Output Files

The reporter generates the following files in the results directory:

  • {uuid}-result.json - Individual test result for each test case
  • {uuid}-container.json - Container grouping test cases from a scenario
  • environment.properties - Environment information (when configured)
  • {uuid}-attachment.{ext} - Attachment files (when includePayloads is set)

License

MIT