mavdi / grunt-cucumberjs

Grunt plugin for cucumber.js
MIT License
31 stars 36 forks source link

Doesn't save json output #39

Closed mrded closed 8 years ago

mrded commented 9 years ago

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

grunt.initConfig({
  cucumberjs: {
    options: {
      format: 'json',
      output: 'my_report.json'
    }
  }
});
gkushang commented 9 years ago

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 9 years ago

Is it possible to save json only?

mrded commented 9 years ago

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

gkushang commented 9 years ago

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 9 years ago

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

mavdi commented 8 years ago

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