Skip to content

Releases: Behat/Behat

v3.29.0

11 Dec 09:53
51bdf81

Choose a tag to compare

Changed

  • Add initial backwards-compatible return types to final classes, final methods and private methods. These changes should not impact end-users or extension authors.
    This is work towards the upcoming 4.0.0 release, which will add support for symfony8 and introduce strict types throughout.
    By @acoulton in #1763

v3.28.0

11 Dec 09:26
e13b8fa

Choose a tag to compare

Changed

  • Add backwards-compatible return types ahead of symfony8 by @Kocal (cherry-picked by @acoulton) in #1702
  • Rename the default branch from master to 3.x and remove the dev-master composer branch alias by @acoulton in #1708

Added

  • Add printSkippedSteps option to pretty formatter (true by default) by @carlos-granados in #1705
  • Accept multiple path arguments on CLI
    This PR was originally contributed to a 4.x branch which was then abandoned. The feature was later implemented in 3.x by a different contributor, but we wanted to also credit the previous work done. The only actual change in this release is an internal (backwards compatible) change to the use of WrongPathsException. By @adrienbrault in #1397 and merged back to 3.x by @acoulton in #1693

Fixed

Internal

3.27.0

23 Nov 12:14
v3.27.0
3282ad7

Choose a tag to compare

Changed

Added

Internal

  • Prepare the pretty printer for future changes in the Gherkin parser by @stof in #1690
  • Add tests proving that multiple Examples tables are supported by @acoulton in #1696

v3.26.0

29 Oct 09:47
1b6b08e

Choose a tag to compare

Changed

  • Support configuring how file paths are rendered by the JUnit formatter (relative or absolute, removing a prefix, etc). Previously, the JUnit formatter would print an absolute path unless the file was beneath the current working
    directory.
    The new default is to print paths relative to the Behat base directory - in most cases this will also be the current working directory and therefore the result will be the same. However, in some cases the reported file paths will change so you may wish to review the configuration e.g. if your tooling aggregates build results over time.
    By @carlos-granados in #1677

Added

Fixed

  • error_reporting in the Behat configuration should take precedence over system defaults by @carlos-granados in #1675
  • Ensure runtime assertions are checked during --convert-config by @carlos-granados in #1679
  • Include consistent index & placeholders for Example names in JUnit by @acoulton in [#1682]#1682)
    based on work previously done by @uuf6429.

Internal

v3.25.0

03 Oct 20:16
bc7f149

Choose a tag to compare

Added

Fixed

  • Provide more context when failing with unexpected multiline args by @acoulton in #1668

Internal

v3.24.1

15 Sep 09:09
1b67565

Choose a tag to compare

Fixed

v3.24.0

11 Sep 09:18
2e82025

Choose a tag to compare

Changed

  • Throw if a step provides an unexpected PyString or Table argument, to highlight cases where step definitions do not match their usage causing potential false-positive passes. If users have stubbed steps with incomplete arguments (e.g. to throw a PendingException) these will now fail before executing. Steps generated from Behat's snippets or IDEs should not be affected as these should already define appropriate PyStringNode / TableNode arguments. By @jdeniau in #1614

Added

  • Display line number of failing test in pretty formatter by @jdeniau in #1615

Fixed

  • Ensure that suggested step definitions actually match the step text by @acoulton in #1656

Internal

v3.23.0

15 Jul 17:01
c465af8

Choose a tag to compare

Added

Fixed

  • Relaxed constraints on nikic/php-parser and composer/xdebug-handler dependencies to allow wider use of newer Behat releases by @acoulton in #1650 and #1649

Internal

v3.16.1

07 May 11:45

Choose a tag to compare

Changed

  • Remove dependency on file location in Gherkin package. The (internal) service container parameters gherkin.paths.lib
    and gherkin.paths.i18n are no longer defined or used. Minimum behat/gherkin version is now ^4.12.0.
    By @carlos-granados in #1604, backported from 3.20.0 to fix errors for users stuck on 3.16.0 due to
    dependency conflicts.

v3.22.0

06 May 15:25
a93098a

Choose a tag to compare

Changed

  • Suggested method names for new step definitions will no longer be transliterated to ASCII. Users working in languages whose characters are mostly outside the allowed UTF-8 range will see generic stepDefinitionX names. We have provided an extension point for custom suggestion implementations, and would consider providing an official extension. If this affects you, please open a discussion on the Behat repository. By @acoulton in #1633
  • The behat/transliterator package is no longer required and will shortly be archived.

Internal