Cucumber.js v6.0.0 Release Notes

Release Date: 2019-10-06 // over 4 years ago
  • ๐Ÿ’ฅ BREAKING CHANGES

    • โฌ‡๏ธ Drop support for Node.js 6
    • โšก๏ธ JSON formatter has major breaking changes. View some sample outputs here. The *.json.js files contain the js objects the json parses to. (UPDATE - reverted in 6.0.3)
    • Duration is now in nanoseconds in event-protocol formatter and in events sent to custom formatters
    • ๐Ÿ‘ Custom formatters: Formatter helpers and EventDataCollector had breaking changes to support retry

    ๐Ÿ› Bug fixes

    • โšก๏ธ Prevent after hooks from updating skipped scenarios to passed
    • Parallel: beforeAll / afterAll errors fail the suite
    • ๐Ÿ›  Fix CLI help link

    ๐Ÿ†• New features

    • โž• Add ability to retry flaky tests
      • Use --retry <NUMBER> and limit what tests will be retried with --retryTagFilter <EXPRESSION>
      • Event-protocol added an attemptNumber to test case started, test case finished, and all test step events and a retried boolean to the test case result to signify if the test case was retried
    • usage-json formatter: add code and patternType
    • โž• Add support for Node.js 12