I'm trying to generate allure report for protractor cucumber but it is not generating any report.
conf.js is as below
exports.config = {
directConnect: true,
capabilities: {
browserName: 'chrome',
},
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
specs: [
'sample.feature'
],
restartBrowserBetweenTests: true,
cucumberOpts: {
require:[
'sampleStep.js',
'reporter.js'
],
},
onPrepare: function () {
browser.manage().window().maximize();
},
};
and the reporter.js file is
var reporter = require('cucumberjs-allure-reporter');
reporter.config(
//targetDir:'./allure-results/'
{ targetDir : './Reports'}
);
module.exports = reporter;
The cucumberjs-allure-reporter
library doesn't support higher Cucumber (I can't remember the exact version, maybe only supports Cucumber 2 and lower).
You can try this new library, cucumberjs-allure2-reporter, which is compatible with Cucumber.JS 3+ and Allure 2+.