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-formatterUsage (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 parseCucumberJson(sourceFile, outputFile)