grunt-cucumber-html-report

0.2.2 • Public • Published

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.loadNpmTasks('grunt-cucumber-html-report');

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.initConfig({
  cucumber_html_report: {
      options: {
        src: './cucumber_report.json', // input file
        dst: './report' // output directory
      },
      files: {
      }  
  },
});

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.

Package Sidebar

Install

npm i grunt-cucumber-html-report

Weekly Downloads

2

Version

0.2.2

License

none

Last publish

Collaborators

  • leinonen