I'm using AWS lambda to execute API tests in my project. At the end of the test I'm generating Cucumber HTML report. Now I want to generate cucumber-js HTML report in memory and read the HTML report without saving it in a folder. Library name @cucumer/cucumber. This will help me to send cucumber report as email to stakeholders. Is there any way to generate HTML report in memory? currently, I'm using this command in package.json file to run the test and generate HTML report. cucumber-js -f html:output/report.html @tags
I'm looking for answer like creating a handler or runner to run cucumber tests:
ex:
cucumber.run({
features: ['features/my-feature.feature'],
reporters: [cucumberReport({ inMemory: true })],
});