grunt-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.
Getting Started
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-cucumber-html-report --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "cucumber_html_report" task
Overview
In your project's Gruntfile, add a section named cucumber_html_report
to the data object passed into grunt.initConfig()
.
grunt;
Options
options.src
Type: String
Default value: ./cucumber_report.json
Input file to be processed.
options.dst
Type: String
Default value: ./report
Output directory
Author
Written by Peter Leinonen, 2016.