
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
jasmine-allure-reporter
Advanced tools
Allure Framework reporter to Jasmine and its derivatives (Protractor)
A plugin to generate an Allure report out of Jasmine tests.
Add the lib into package.json
and then configure the plugin:
// conf.js
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter({
resultsDir: 'allure-results'
}));
Put the above code into the onPrepare
inside of your conf.js
:
// conf.js
exports.config = {
framework: 'jasmine2',
onPrepare: function() {
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter({
resultsDir: 'allure-results'
}));
}
}
The Reporter will generate xml files inside of a resultsDir
, then we need to generate HTML out of them. You can
use Maven for that. Copy ready-to-use pom.xml
from node_modules/jasmine-allure-reporter
and run:
mvn site -Dallure.results_pattern=allure-results
It will put HTMLs into target/site/allure-maven-plugin
folder. To serve them via localhost:1324 use:
mvn jetty:run -Djetty.port=1234
Otherwise choose one of other ways to generate HTML.
onPrepare: function () {
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter());
jasmine.getEnv().afterEach(function(done){
browser.takeScreenshot().then(function (png) {
allure.createAttachment('Screenshot', function () {
return new Buffer(png, 'base64')
}, 'image/png')();
done();
})
});
}
Note done
callback!
allure-js-commons
.See the system tests to quickly check how the reporter works in real life:
node_modules/protractor/bin/protractor ./test/system/conf.js
FAQs
Allure Framework reporter to Jasmine and its derivatives (Protractor)
The npm package jasmine-allure-reporter receives a total of 9,773 weekly downloads. As such, jasmine-allure-reporter popularity was classified as popular.
We found that jasmine-allure-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.