Skip to content

Convert cucumber reports from json to HTML using Mustache templates

Notifications You must be signed in to change notification settings

glenn-murray-bse/cucumber-html-report

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cucumber-html-report

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.

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)
};

var report = new Report(options);
report.createReport();

Author

Written by Peter Leinonen 2016.

About

Convert cucumber reports from json to HTML using Mustache templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 50.3%
  • JavaScript 49.7%