cd /path/to/project
npm install handlebars
Copy html-reporter.js
and html-reporter.hbs
to your project basedir.
nightwatch test.js --reporter html-reporter.js
The html report will be generated under your nightwatch reports folder.
Edit html-report.hbs
to customize the look and feel of the report.
See http://handlebarsjs.com for Handlebars syntax.
hello, how can I do to add the name of the suite that is being executed in the name of the report, instead of using that random name generated this variable?
var reportFilename = options.filename_prefix + (Math.floor(Date.now() / 1000)) + '.html'; --(line 8)