Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: cucumber/cucumber-js
...
head fork: cucumber/cucumber-js
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 19, 2012
Julien Biezemans jbpros Mention CS support in README b2b5642
Commits on May 02, 2012
Julien Biezemans jbpros Add alternate binary script for Windows (close #60)
The ".js" file name "extension" is causing troubles on Windows. Use "cucumber-js" instead (even when installed locally).
32b5ced
Julien Biezemans jbpros Update command-line documentation in README 5afb40f
Julien Biezemans jbpros Release 0.2.14 d1f5316
Showing with 30 additions and 11 deletions.
  1. +15 −1 History.md
  2. +12 −7 README.md
  3. +1 −1  lib/cucumber.js
  4. +2 −2 package.json
16 History.md
View
@@ -2,11 +2,25 @@
## [v0.2](https://github.com/cucumber/cucumber-js/compare/v0.1.5...master)
-### [master (unreleased)](https://github.com/cucumber/cucumber-js/compare/v0.2.13...master)
+### [master (unreleased)](https://github.com/cucumber/cucumber-js/compare/v0.2.14...master)
**TBD**
+### [v0.2.14](https://github.com/cucumber/cucumber-js/compare/v0.2.13...v0.2.14)
+
+
+#### Fixes
+
+* Add alternate binary script for Windows (close #60) (Julien Biezemans)
+
+#### New features
+
+* Mention CS support in README (Julien Biezemans)
+* Update command-line documentation in README (Julien Biezemans)
+
+
+
### [v0.2.13](https://github.com/cucumber/cucumber-js/compare/v0.2.12...v0.2.13)
19 README.md
View
@@ -112,7 +112,7 @@ Feature: Example feature
### Support Files
-Support files let you setup the environment in which steps will be run, and define step definitions.
+Support files let you setup the environment in which steps will be run, and define step definitions. Both JavaScript (`.js`) and CoffeeScript (`.coffee`) source files are supported.
#### World
@@ -337,26 +337,31 @@ module.exports = myHooks;
Cucumber.js includes a binary file to execute the features.
-If you installed cucumber.js with `npm install --dev`, you may run cucumber with:
+If you installed cucumber.js globally, you may run it with:
``` shell
- @NODE_ENV=test ./node_modules/.bin/cucumber.js
+$ cucumber.js
```
You may specify the features to run:
``` shell
- @NODE_ENV=test ./node_modules/.bin/cucumber.js features/myFeature.feature
+$ cucumber.js features/my_feature.feature
```
-And require specific step definitions with the --require option:
+And require specific step definitions and support code files with the --require option:
``` shell
- @NODE_ENV=test ./node_modules/.bin/cucumber.js features/myFeature.feature \
- --require features/step_definitions/myStepDefinitions.js
+$ cucumber.js features/my_feature.feature --require features/step_definitions/my_step_definitions.js
```
+If you installed Cucumber locally or with `npm install --dev`, you'll need to specify the path to the binary:
+``` shell
+$ ./node_modules/.bin/cucumber.js
+```
+
+**Note to Windows users:** invoke Cucumber.js with `cucumber-js` instead of `cucumber.js`. The latter is causing the operating system to invoke JScript instead of Node.js, because of the so-called file extension.
### Examples
2  lib/cucumber.js
View
@@ -16,6 +16,6 @@ Cucumber.Type = require('./cucumber/type');
Cucumber.Util = require('./cucumber/util');
Cucumber.VolatileConfiguration = require('./cucumber/volatile_configuration');
-Cucumber.VERSION = "0.2.13";
+Cucumber.VERSION = "0.2.14";
module.exports = Cucumber;
4 package.json
View
@@ -1,7 +1,7 @@
{ "name" : "cucumber"
, "description" : "The official JavaScript implementation of Cucumber."
, "keywords" : [ "testing", "bdd", "cucumber", "gherkin", "tests" ]
-, "version" : "0.2.13"
+, "version" : "0.2.14"
, "homepage" : "http://github.com/cucumber/cucumber-js"
, "author" : "Julien Biezemans <jb@jbpros.com> (http://jbpros.net)"
, "contributors" : [
@@ -39,7 +39,7 @@
}
, "scripts" :
{ "test" : "./bin/cucumber.js && jasmine-node spec" }
-, "bin": { "cucumber.js": "./bin/cucumber.js" }
+, "bin": { "cucumber.js": "./bin/cucumber.js", "cucumber-js": "./bin/cucumber.js" }
, "licenses" :
[ { "type" : "MIT"
, "url" : "http://github.com/cucumber/cucumber.js/LICENSE"

No commit comments for this range

Something went wrong with that request. Please try again.