Skip to content

Commit 04a2c27

Browse files
committed
executable rename
-Renamed executable to modulePath
1 parent 29e01bd commit 04a2c27

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## v 0.2.3
3+
* Fixed 'executable' rename to 'modulePath'
4+
25
## v 0.2.2
36
* Merged fix for incorrect status code
47
* Merged fix to README file for 'src' instead of 'files'

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,19 @@ Available formats:
7070
* json : prints the feature as JSON
7171
* summary : prints a summary only, after all scenarios were executed
7272

73-
#### executable
73+
#### modulePath
7474
Type: `String`
7575

7676
Default: `'cucumber'`
7777

7878
Used to set the path to Cucumber.js's `lib/cucumber.js`
7979
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.
8284

83-
Example: `executable: "../../custom_libs/cucumberjs/lib/cucumber.js"`
85+
Example: `modulePath: "../../custom_libs/cucumberjs/lib/cucumber.js"`
8486

8587

8688
### Usage Examples

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-cucumber",
33
"description": "Grunt task for running Cucumber.js",
4-
"version": "0.2.2",
4+
"version": "0.2.3",
55
"homepage": "https://github.com/s9tpepper/grunt-cucumber-js",
66
"author": {
77
"name": "Omar Gonzalez",

tasks/cucumber-js-task.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function (grunt) {
1111
var steps = options.steps;
1212
var tags = options.tags;
1313
var format = options.format;
14-
var executable = options.executable;
14+
var modulePath = options.modulePath;
1515

1616
grunt.verbose.writeflags(options, 'Options');
1717

@@ -63,8 +63,8 @@ module.exports = function (grunt) {
6363
}
6464

6565
var cucumberPath = 'cucumber';
66-
if (! _.isEmpty(executable)) {
67-
cucumberPath = executable;
66+
if (! _.isEmpty(modulePath)) {
67+
cucumberPath = modulePath;
6868
}
6969

7070
grunt.verbose.writeln('Exec Options: ' + execOptions.join(' '));

0 commit comments

Comments
 (0)