node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »


alt text


Create HTML reports from cucumber json report files. Uses mustache to transform json to HTML. Also writes embeddings (base64 encoded PNG images) to disk and includes them in the HTML, useful for showing screenshots from Protractor for example. Plain text embeddings are also included in the HTML, useful for including additional information such as environment details and values of any randomly generated data.

Very easy to use

var Report = require('cucumber-html-report');
var options = {
  source:    './cucumber_report.json', // source json 
  dest:      './reports',          // target directory (will create if not exists) 
  name:      'report.html',        // report file name (will be index.html if not exists) 
  template:  'mytemplate.html',    // your custom mustache template (uses default if not specified) 
  title:     'Cucumber Report',    // Title for default template. (default is Cucumber Report) 
  component: 'My Component',       // Subtitle for default template. (default is empty) 
var report = new Report(options);


You can contribute to this project by submitting a PR.


  • Refactor code into smaller modules
  • Write all tests using cucumber! :)


Written by Peter Leinonen 2016, with help of contributors. Thanks!