Grunt-rcukes

gruntjs plugin to run ruby cucumber via grunt

Download .zip Download .tar.gz View on GitHub

grunt-rcukes

Grunt plugin for running ruby cucumber.

Getting Started

This plugin requires Grunt 0.4.0.

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.

  1. Install this grunt plugin with the following command:

    npm install grunt-rcukes --save-dev
    
  2. Install cucumber gem

    gem install cucumber
    
  3. Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

    grunt.loadNpmTasks('grunt-rcukes');
    

Cucumber task

Run this task with the grunt cucumber command.

Usage Example

cucumber: {
    test: {
        features: 'features/'
    },
    options: {
        prefix: 'bundle exec',
        profile: 'default',
        format: 'progress'
    }
}

Target Properties

features

Type: String

The features directory containing cucumber features

Options

prefix

Type: String

Prefix before cucumber command

profile

Type: String

Cucumber profile to use

format

Type: String

Cucumber formatter