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 apretty
format instead. Theprogress
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
andregisterListener
. UseBeforeAll
/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
. UsedefineParameterType
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
- Add built in
- ๐ Improve error message when using multiple asynchronous interfaces
๐ Bug Fixes
- ๐ Fix support code line and uri references when using direct imports
- ๐