mavdi/grunt-cucumberjs

Doesn't save json output

Closed this issue · 6 comments

mrded commented

Following settings don't create my_report.json file with report.

grunt.initConfig({
  cucumberjs: {
    options: {
      format: 'json',
      output: 'my_report.json'
    }
  }
});

Can you try this?

grunt.initConfig({
  cucumberjs: {
    options: {
        format: 'html',
        output: 'path/to/report.html',
        theme: 'bootstrap ',
        saveJson: true //this will be saved Json as report.json
    }
  }
});
mrded commented

Is it possible to save json only?

mrded commented

it makes report.html & report.html.json files.

I do not think it generates only JSON files. This module generates pretty HTML report for cucumber. JSON file is in the similar format of cucumberjs, e.g. cucumberjs {options} -f json | tee report.json

mrded commented

It would make sense to choose a format you want to output.

mavdi commented

since cucumberjs itself will output json I don't see the need for us to support a json only option. Closing.