Generate HTML Report
This feature allows you to generate an HTML report from a Cucumber JSON report. You need to specify the input JSON file and the output HTML file. The `generate` function processes the JSON and creates a formatted HTML report.
const { generate } = require('@cucumber/html-formatter');
const options = {
input: 'path/to/cucumber-report.json',
output: 'path/to/output.html'
};
generate(options).then(() => {
console.log('HTML report generated successfully!');
}).catch(err => {
console.error('Error generating HTML report:', err);
});