File tree 4 files changed +13
-8
lines changed
4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
+ ## v 0.2.3
3
+ * Fixed 'executable' rename to 'modulePath'
4
+
2
5
## v 0.2.2
3
6
* Merged fix for incorrect status code
4
7
* Merged fix to README file for 'src' instead of 'files'
Original file line number Diff line number Diff line change @@ -70,17 +70,19 @@ Available formats:
70
70
* json : prints the feature as JSON
71
71
* summary : prints a summary only, after all scenarios were executed
72
72
73
- #### executable
73
+ #### modulePath
74
74
Type: ` String `
75
75
76
76
Default: ` 'cucumber' `
77
77
78
78
Used to set the path to Cucumber.js's ` lib/cucumber.js `
79
79
file if you don't want to load it from the ` npm_modules `
80
- directory using ` require('cucumber') ` . Useful for running
81
- customized versions of Cucumber.js for a specific project.
80
+ directory using the default ` require('cucumber') ` . Useful for running
81
+ customized versions of Cucumber.js for a specific project.
82
+ It is helpful when you need to modify the Cucumber.js lib
83
+ but you can not open source the contributions.
82
84
83
- Example: ` executable : "../../custom_libs/cucumberjs/lib/cucumber.js"`
85
+ Example: ` modulePath : "../../custom_libs/cucumberjs/lib/cucumber.js"`
84
86
85
87
86
88
### Usage Examples
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " grunt-cucumber" ,
3
3
"description" : " Grunt task for running Cucumber.js" ,
4
- "version" : " 0.2.2 " ,
4
+ "version" : " 0.2.3 " ,
5
5
"homepage" : " https://github.com/s9tpepper/grunt-cucumber-js" ,
6
6
"author" : {
7
7
"name" : " Omar Gonzalez" ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = function (grunt) {
11
11
var steps = options . steps ;
12
12
var tags = options . tags ;
13
13
var format = options . format ;
14
- var executable = options . executable ;
14
+ var modulePath = options . modulePath ;
15
15
16
16
grunt . verbose . writeflags ( options , 'Options' ) ;
17
17
@@ -63,8 +63,8 @@ module.exports = function (grunt) {
63
63
}
64
64
65
65
var cucumberPath = 'cucumber' ;
66
- if ( ! _ . isEmpty ( executable ) ) {
67
- cucumberPath = executable ;
66
+ if ( ! _ . isEmpty ( modulePath ) ) {
67
+ cucumberPath = modulePath ;
68
68
}
69
69
70
70
grunt . verbose . writeln ( 'Exec Options: ' + execOptions . join ( ' ' ) ) ;
You can’t perform that action at this time.
0 commit comments