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.
-
Install this grunt plugin with the following command:
npm install grunt-rcukes --save-dev
-
Install cucumber gem
gem install cucumber
-
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