Skip to content

Commit

Permalink
executable rename
Browse files Browse the repository at this point in the history
-Renamed executable to modulePath
  • Loading branch information
s9tpepper committed Sep 9, 2013
1 parent 29e01bd commit 04a2c27
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## v 0.2.3
* Fixed 'executable' rename to 'modulePath'

## v 0.2.2
* Merged fix for incorrect status code
* Merged fix to README file for 'src' instead of 'files'
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,19 @@ Available formats:
* json : prints the feature as JSON
* summary : prints a summary only, after all scenarios were executed

#### executable
#### modulePath
Type: `String`

Default: `'cucumber'`

Used to set the path to Cucumber.js's `lib/cucumber.js`
file if you don't want to load it from the `npm_modules`
directory using `require('cucumber')`. Useful for running
customized versions of Cucumber.js for a specific project.
directory using the default `require('cucumber')`. Useful for running
customized versions of Cucumber.js for a specific project.
It is helpful when you need to modify the Cucumber.js lib
but you can not open source the contributions.

Example: `executable: "../../custom_libs/cucumberjs/lib/cucumber.js"`
Example: `modulePath: "../../custom_libs/cucumberjs/lib/cucumber.js"`


### Usage Examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grunt-cucumber",
"description": "Grunt task for running Cucumber.js",
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/s9tpepper/grunt-cucumber-js",
"author": {
"name": "Omar Gonzalez",
Expand Down
6 changes: 3 additions & 3 deletions tasks/cucumber-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function (grunt) {
var steps = options.steps;
var tags = options.tags;
var format = options.format;
var executable = options.executable;
var modulePath = options.modulePath;

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

Expand Down Expand Up @@ -63,8 +63,8 @@ module.exports = function (grunt) {
}

var cucumberPath = 'cucumber';
if (! _.isEmpty(executable)) {
cucumberPath = executable;
if (! _.isEmpty(modulePath)) {
cucumberPath = modulePath;
}

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

0 comments on commit 04a2c27

Please sign in to comment.