Cucumber.js v4.0.0 Release Notes
Release Date: 2018-01-24 // about 6 years ago-
๐ฅ BREAKING CHANGES
- ๐ cucumber now waits for the event loop to drain before exiting. To exit immediately when the tests finish running use
--exit
. Use of this flag is discouraged. See here for more information - โ remove
--compiler
option. See here for the new way to use transpilers - โ remove binaries
cucumber.js
andcucumberjs
. Usecucumber-js
๐ New Features
- can now use glob patterns for selecting what features to run
- โก๏ธ update
--require
to support glob patterns - โ add
--require-module <NODE_MODULE>
to require node modules before support code is loaded - โ add snippet interface "async-await"
- add
--parallel <NUMBER_OF_SLAVES>
option to run tests in parallel. Note this is an experimental feature. See here for more information
๐ Bug Fixes
- โช revert json formatter duration to nanoseconds
๐ Deprecations
- ๐
defineSupportCode
is deprecated. Require/import the individual methods instead ```js var {defineSupportCode} = require('cucumber');
defineSupportCode(function({Given}) { Given(/a step$/, function() {}); });
// Should be updated to
var {Given} = require('cucumber');
Given(/a step$/, function() {});
- ๐ cucumber now waits for the event loop to drain before exiting. To exit immediately when the tests finish running use