Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
allure-cucumberjs
Advanced tools
Allure integration for Cucumber.JS framework
Compatible with Cucumber.JS 3+ and Allure 2+
Create Reporter file:
export default class Reporter extends CucumberJSAllureFormatter {
constructor(options) {
super(
options,
new AllureRuntime({ resultsDir: "./out/allure-results" }),
{
labels: {
issue: [/@bug_(.*)/],
epic: [/@feature:(.*)/]
}
}
);
}
}
This class MUST:
CucumberJSAllureFormatter
super()
as first argumentsuper()
argument is AllureRuntime
instanceThen pass with reporter as a Cucumber formatter:
node cucumber.js --format ./path/to/Reporter.js
If you want to retain default formatter add some dummy file as output:
node cucumber.js --format ./path/to/Reporter.js:./dummy.txt
If you can not use classes (ES6 or TypeScript), here is an example of Reporter.js file written in plain JS:
var CucumberJSAllureFormatter = require(allure-cucumberjs).CucumberJSAllureFormatter;
var AllureRuntime = require(allure-cucumberjs).AllureRuntime;
function Reporter(options) {
CucumberJSAllureFormatter.call(this,
options,
new AllureRuntime({ resultsDir: "./out/allure-results" }),
{});
}
Reporter.prototype = Object.create(CucumberJSAllureFormatter.prototype);
Reporter.prototype.constructor = Reporter;
exports.default = Reporter;
Instance of AllureInterface will be added to World prototype. You can use it for creating nested steps and adding info to the report.
Ilya Korobitsyn mail@korobochka.org
FAQs
Allure Cucumber.JS integration
The npm package allure-cucumberjs receives a total of 22,850 weekly downloads. As such, allure-cucumberjs popularity was classified as popular.
We found that allure-cucumberjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.