eduardogch / gulp-chimp

Gulp plugin to interact with the Chimp.js
MIT License
3 stars 3 forks source link

Cucumber HTML report does not work with external config file #7

Open MacDennis76 opened 7 years ago

MacDennis76 commented 7 years ago

Hi,

When I use an external config file the Cucumber HTML report is not started.

To me this is because the options object in this module is different when using an external config file vs specifying the config in the gulpfile.

For example, when using an external config file this is undefined: options.htmlReport.enable.

eduardogch commented 7 years ago

Hi @MacDennis76 there is a new version for enable html reporter.

Just add this new lines in gulp task for chimp:

gulp.task('chimp-options', () => {
    return chimp({
        features: './source/e2e/features',
        browser: 'phantomjs',
        singleRun: true,
        debug: false,
        output: {
            screenshotsPath: './e2e_output/screenshots',
            jsonOutput: './e2e_output/cucumber.json',
        },
        htmlReport: {
            enable: true,
            jsonFile: './e2e_output/cucumber.json',
            output: './e2e_output/report/cucumber.html',
            reportSuiteAsScenarios: true,
            launchReport: true,
        }
    });
});