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.
@denji: In html-reporter.hbs file the jquery code written to toggle stacktrace section is little bit wrong.
This above code snippet is wrongly placed and will show wrong text on the anchor tag after its first get clicked.
Shortest possible way to fix this is to add this code in jquery toggle function.
Code will look something like this :-
`code.toggle('fast', function() {