JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4729
  • Score
    100M100P100Q140508F
  • License MIT

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

Package Exports

  • cucumber-json-report-formatter
  • cucumber-json-report-formatter/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cucumber-json-report-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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)