Skip to content

WasiqB/multiple-cucumber-html-reporter

Multiple Cucumber HTML Reporter

Generate beautiful, interactive, and customizable HTML reports for Cucumber runs.

Discord GitHub Workflow Status NPM Version NPM Downloads License Sponsor


Multiple Cucumber HTML Reporter Hero

🌟 Why this reporter?

Multiple Cucumber HTML Reporter is a robust reporting module that transforms standard Cucumber JSON output into stunning, feature-rich HTML reports. Unlike generic reporters, it is designed for scale and clarity.

✨ Key Features

  • πŸ“Š Interactive Dashboard: Scored overview of all tested features and scenarios.
  • πŸŒ“ Dark Mode Support: Built-in support for light and dark themes for better accessibility.
  • πŸ”„ Multiple Runs: Consolidate multiple runs of the same feature (e.g., across different browsers or devices).
  • πŸ“± Rich Metadata: Automatically display browser, device, platform, and app version details.
  • πŸ” Advanced Filtering: Easily search, filter, and sort through large test suites.
  • 🎨 Fully Customizable: Add custom data blocks, brand colors, and additional CSS styles.

πŸš€ Quick Start

1. Install

pnpm add multiple-cucumber-html-reporter --save-dev

2. Generate Report

Add this to your test teardown or a separate reporting script:

const report = require("multiple-cucumber-html-reporter");

report.generate({
  jsonDir: "./path-to-your-json-output/",
  reportPath: "./path-where-the-report-needs-to-be/",
  metadata: {
    browser: {
      name: "chrome",
      version: "latest",
    },
    device: "Local test machine",
    platform: {
      name: "osx",
      version: "Sonoma",
    },
  },
  customData: {
    title: "Run info",
    data: [
      { label: "Project", value: "My Awesome Project" },
      { label: "Release", value: "1.0.0" },
    ],
  },
});

Check out the examples folder for integration with frameworks like Cypress.


πŸ“– In-Depth Documentation

Looking for advanced configurations, framework integrations (WebdriverIO, Cypress, etc.), or FAQs? Visit our comprehensive documentation site:


πŸ–ΌοΈ Feature Showcase

Feature List Page

Feature List Page

Feature Details Page

Feature Details Page


🀝 Contributing & Community

Contributions are what make the open source community such an amazing place to learn, inspire, and create.

πŸ’¬ Support & Talk

❀️ Support the project

If you find this project useful, please consider sponsoring the maintainer. Your support helps keep the project maintained and improved!

βš–οΈ License

Distributed under the MIT License. See LICENSE for more information.


Built with ❀️ by Wasiq Bhamla

Sponsor this project

 

Contributors