I included the below code in my conf.js
file but the Allure reports are not getting generated.
onPrepare : function() {
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(
new AllureReporter({
allureReport : {
resultsDir : 'allure-results'
}
})
);
jasmine.getEnv().afterEach(function(done) {
browser.takeScreenshot().then(function(png) {
allure.createAttachment('Screenshot', function() {
return new Buffer(png, 'base64')
}, 'image/png')();
done();
})
});
}
Please let me know if I am missing anything.
Thanks,
Srinivas