Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@cucumber/html-formatter
Advanced tools
@cucumber/html-formatter is an npm package that provides a way to generate HTML reports from Cucumber JSON output. It is useful for visualizing the results of Cucumber tests in a more readable and user-friendly format.
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);
});
cucumber-html-reporter is another package that generates HTML reports from Cucumber JSON output. It offers customization options for the report layout and styling. Compared to @cucumber/html-formatter, it provides more flexibility in terms of report customization.
cucumber-html is a package that also generates HTML reports from Cucumber JSON output. It is a simpler alternative to @cucumber/html-formatter, focusing on ease of use and quick setup. It may lack some advanced customization features available in @cucumber/html-formatter.
multiple-cucumber-html-reporter is a package designed to generate HTML reports from multiple Cucumber JSON files. It supports merging multiple reports into a single HTML file, which can be useful for large projects with multiple test suites. It offers more advanced features compared to @cucumber/html-formatter, such as embedding screenshots and detailed metadata.
For general information, see the parent README.md
While hacking on this module you may want to try it out manually. For example,
to generate a report with random results for the .feature
files used in gherkin's
test suite:
cd ../../gherkin
../fake-cucumber/javascript/bin/fake-cucumber \
--format ndjson \
testdata/good/*.feature | \
../html-formatter/javascript/bin/cucumber-html-formatter.js \
--format ndjson > \
gherkin.html
Note that this will only work if package.json
points to released versions. It won't
work as long as there are file:
dependencies - you'll get a React error.
The Docker image is automatically built on docker hub, but you can also build it locally:
source ../../scripts/functions.sh
docker_build Dockerfile
[4.0.0] - 2020-02-15
@cucumber/react
to 4.0.0
FAQs
HTML formatter for Cucumber
The npm package @cucumber/html-formatter receives a total of 764,592 weekly downloads. As such, @cucumber/html-formatter popularity was classified as popular.
We found that @cucumber/html-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.