Cucumber.js v3.0.0 Release Notes

Release Date: 2017-08-08 // over 6 years ago
  • ๐Ÿ’ฅ BREAKING CHANGES

    • ๐Ÿšš pretty formatter has been removed. All errors are now reported in a pretty format instead. The progress formatter is now the default.
    • ๐Ÿ“„ Major changes to custom formatter and custom snippet syntax APIs due to rewrite in support of the event protocol. Please see the updated documentation.
    • โœ‚ Remove registerHandler and registerListener. Use BeforeAll / AfterAll for setup code. Use the event protocol formatter if used for reporting. Please open an issue if you have another use case.
    • โœ‚ Remove deprecated addTransform. Use defineParameterType instead.
    • cucumber-expressions:
      • using an undefined parameter type now results in an error
      • {stringInDoubleQuotes} is now {string} which works for strings in single or double quotes
    • ๐Ÿ— Undefined steps fail the build in non-strict mode. Non-strict mode only allows pending steps now.

    ๐Ÿ†• New Features

    • โž• Add --i18n-languages and --i18n-keywords <ISO 639-1> CLI options
    • โž• Add BeforeAll / AfterAll hooks for suite level setup / teardown
    • โž• Add event protocol formatter
    • cucumber-expressions:
      • Add built in {word} parameter type which is equivalent to [A-Za-z0-9_]+
      • Allow multiple parameter types to use the same regular expression
    • ๐Ÿ‘Œ Improve error message when using multiple asynchronous interfaces

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix support code line and uri references when using direct imports