Run cucumber tests via cuke-tree
npm install grunt-cuke-tree~0.4.1
shell
npm install grunt-cuke-tree --save-dev
`
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('grunt-cuke-tree');
`
cuketree task
_Run this task with the grunt cuketree command._
$3
#### options.config
Type: String
Default value: default
Name the cuke-tree config file to use with cuke-tree. cuke-tree will append .cukeTree.js to config name when loading the config file.
$3
#### Basic Usage
In this example, cuke-tree will look for a config file with the default file name of default.cukeTree.js
`js
grunt.initConfig({
cuketree: {},
})
`
#### Custom cuke-tree config file
In this example, a different config file is specified for cuke-tree. Specifying ide as the config will cause cuke-tree to look for a config file called ide.cukeTree.js.
`js
grunt.initConfig({
cuketree: {
options: {
config: 'ide',
},
},
})
`
cuke-tree will look for a config file called
#### Multiple cuke-tree config files
In this example, multiple cuke-tree config files are used.
`js
grunt.initConfig({
cuketree: {
run: {},
ide: {
options: {
config: 'ide',
},
},
},
})
``