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 and cucumberjs. Use cucumber-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() {});