8000 Tags · karinepires/cucumber-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: karinepires/cucumber-js

Tags

v0.8.1

Toggle v0.8.1's commit message
Document World constructor changes

v0.8.0

Toggle v0.8.0's commit message
Adds fail fast mode, multiple formatters, target multiple lines in sa…

…me feature file, disable colors, custom snippet plugins and more.

BACKWARD INCOMPATIBLE CHANGES:

- Hooks and step definitions signatures are now strictly checked. Accepting too few or too many arguments in your step definitions and hooks will trigger errors.

- World constructor functions do not receive a callback from Cucumber anymore. Asynchronous constructors are not idiomatic and therefore made the World API non-intuitive, compared to other libraries. This was also unnecessary as calling asynchronous code before a scenario is achievable through a Before hook.

For example, you might currently be asynchronously launching a Webdriver-driven browser window in your World constructor. Since Cucumber 0.8.0, you can't wait for that call to be done in your constructor because it will not receive any callback to invoke asynchronously. Instead, you'll need to move that call to a Before hook:

```javascript
// old:
this.World = function MyWorld(callback) {
  var driver = new webdriver.Builder().build();
  driver.get('http://google.com')
    .then(callback);
};

// Cucumber 0.8.0+:
this.World = function MyWorld() {
  // only synchronous code allowed here ...
}

this.Before(function (scenario, callback) {
  var driver = new webdriver.Builder().build();
  driver.get('http://google.com')
    .then(callback);
});
```

And if you're using promises anyway, you can simply return one from the hook and remove the callback argument altogether.

v0.7.0

Toggle v0.7.0's commit message
Step timeouts, execution time stats, better hooks interface

v0.6.0

Toggle v0.6.0's commit message
Add --dry-run, --compiler and --no-source

v0.5.3

Toggle v0.5.3's commit message
Profiles, multiple instances of placeholder, relative paths, fixes an…

…d lots of bumps

v0.5.2

Toggle v0.5.2's commit message
Minor fixes

v0.5.1

Toggle v0.5.1's commit message
Placeholders in scenario outline titles

v0.5.0

Toggle v0.5.0's commit message
Add support for synchronous and promise-based step definitions

v0.4.9

Toggle v0.4.9's commit message
Filter stack traces

v0.4.8

Toggle v0.4.8's commit message
Support Node.js 0.12 and IO.js

0