Я пытаюсь сгенерировать отчет об очаровании для огурца-транспортира, но он не генерирует никакого отчета.
conf.js , как показано ниже
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();
},
};
и reporter.js файл
var reporter = require('cucumberjs-allure-reporter');
reporter.config(
//targetDir:'./allure-results/'
{ targetDir : './Reports'}
);
module.exports = reporter;