Skip to content

Releases: Behat/Behat

v3.23.0

15 Jul 17:01
c465af8
Compare
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
Compare
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
Compare
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

v3.21.1

22 Apr 17:41
315970f
Compare
Choose a tag to compare

Fixed

  • ExceptionPresenter was causing a TypeError when constructed with a null $basePath by @acoulton in #1631

v3.21.0

21 Apr 07:28
4b6a6cd
Compare
Choose a tag to compare

Fixed

  • JUnit formatter options were being lost when converting config to PHP by @acoulton in #1622
  • Contexts with constructor arguments were not properly converted to PHP configuration by @acoulton in #1619

Added

  • New CLI and configuration option to print all paths as absolute paths by @carlos-granados in #1620
  • Expose PHP configuration interface for tester and error_reporting options by @acoulton in #1626
  • Improve config conversion to PHP to generate class references instead of string names; reference extensions by their fully qualified class names; convert output_verbosity values to constants; and convert tester and error_reporting configuration to PHP by @acoulton in #1619, #1623 and #1626

Internal

  • Refactor features for configurable tester / error_reporting options by @acoulton in #1625

v3.20.0

02 Apr 14:53
edb265a
Compare
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.

Added

  • --allow-no-tests CLI option to pass even if no specifications found by @Kingdutch in #1420
  • --convert-config CLI option to convert the yaml config to php by @carlos-granados in #1605

Internal

v3.19.0

13 Feb 09:08
6cf8237
Compare
Choose a tag to compare

Changed

  • Remove internal wrappers for PSR Container interfaces - may affect projects using container-interop/container-interop < 1.2.0 (released in 2017, package now deprecated and unsupported by behat since 2021). By @acoulton in #1584
  • Remove legacy Symfony event dispatchers - these were internal wrappers to support symfony <5 and >=5, both now redundant. By @carlos-granados in #1585

Added

Fixed

Internal

v3.18.1

10 Jan 10:09
4621239
Compare
Choose a tag to compare

Fixed

  • Fix handling of show_output option when used with a custom formatter that does not define it by @carlos-granados in
    #1587

v3.18.0

09 Jan 18:15
18795fa
Compare
Choose a tag to compare

Changed

  • Add new methods to the Behat\Hook\Hook and Behat\Step\Definition interfaces used internally by step definition attributes by @carlos-granados in #1573

Added

  • Add show_output formatter option to control if/when to display stdout generated during tests by @carlos-granados in #1576

Fixed

  • Do not disable xdebug if there is an active debugging connection by @carlos-granados in #1581
  • Inherit step definition attributes on methods extended from parent Context by @fmatsos in #1567

Internal

  • Add PHPStan and improve / fix docblock annotations and type-safety within methods to achieve level 3 by @carlos-granados in #1571, #1573 and #1578 and by @stof in #1575
  • Use annotations rather than attributes for step definitions in Behat's own feature suites by @fmatsos in #1564
  • Remove composer dev dependency on legacy herrera-io/box by @acoulton in #1580
  • Do not run ci builds if only markdown files have changed by @codisart in #1582

v3.17.0

18 Dec 10:28
3eb5eba
Compare
Choose a tag to compare

Changed

  • Use attributes rather than annotations when generating suggested Context snippets by @fmatsos in #1549 and #1569
  • Disable Xdebug unless --xdebug is specified on the CLI, to improve performance by @carlos-granados in #1560

Added

Fixed

  • Show more meaningful message if no output_path is specified for the junit formatter by @carlos-granados in #1533
  • Fix error from the JUnit printer if scenario has no title by @mvhirsch in #1525
  • Fix naming of suggested methods when generating regex snippets for steps defined with single quotes by @carlos-granados in #1524

Internal