Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cucumber-json-report-formatter

Vitalizzzer60.2kMIT0.1.4TypeScript support: included

Cucumber report formatter for @badeball/cypress-cucumber-preprocessor report

cucumber, formatter, report, bdd, automation

readme

Cucumber JSON Report Formatter

Overview

The tool provides an opportunity to format report generated by @badeball/cypress-cucumber-preprocessor into a regular Cucumber json report

Requirements

  • Requires Node.js 14.16+

Installation

npm i cucumber-json-report-formatter

Usage (JavaScript is the best way)

import {Formatter} from 'cucumber-json-report-formatter';

const formatter = new Formatter()
const sourceFile = "./cucumber-messages.ndjson"
const outputFile = "./reports/cucumber-report.json"
await formatter.parseCucumberJson(sourceFile, outputFile)