Skip to content

Tags: Behat/Gherkin

Tags

v4.16.1

Toggle v4.16.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: Reinstate support for legacy tag filters without `@` prefix (#407)

As reported by @carlos-granados in #406, the 4.16.0 release broke tag
filtering where the tag expression does not contain `@` symbols [e.g. in
Behat](https://github.com/Behat/Behat/actions/runs/20028377501/job/57431075976).

Behat's filter expression in the failing feature is arguably incorrect:

* It uses `new TagFilter('tag2')` (note no leading `@`) - the PHP config
object is obviously new but the value has been the same since [the
feature was first added in
2014](https://github.com/Behat/Behat/pull/434/files#diff-ca77b0b1e7860ced7eb08cc40f9d6648acc0760a0be45c5fd76a8a19992adbebR92)
* All the Behat documentation shows expressing tag filters with the
leading `@` e.g.
https://docs.behat.org/en/latest/user_guide/configuration/suites.html#suite-filters
* The actual implementation of tag filtering is done in Behat/Gherkin.
Gherkin's [TagFilterTest only tests tag expressions where the leading
`@` is
included](https://github.com/Behat/Gherkin/blame/297297343c125d058e18b3f03a24ebb32f70b69d/tests/Filter/TagFilterTest.php)
and that appears to have been the case from the beginning.

As far as I can see, `TagFilter` has therefore never been meant to
accept that expression, and it's been working by accident.

However, we obviously don't validate the expression, and we have
decided we should reintroduce support for it if even Behat
has been relying on it until now.

Note that this syntax is officially deprecated and will be removed in the
next major - see #408

v4.16.0

Toggle v4.16.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: Add changelog for 4.16.0 (#406)

v4.15.0

Toggle v4.15.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: Add CHANGELOG for 4.15.0 (#390)

v4.14.0

Toggle v4.14.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add changelog for 4.14.0 (#346)

v4.13.0

Toggle v4.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #315 from acoulton/next-4.x

chore: Add changelog for v4.13.0

v4.12.0

Toggle v4.12.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #291 from acoulton/release-4.12.0

Add release notes for 4.12.0

v4.11.0

Toggle v4.11.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #273 from acoulton/next-4.x

chore: Add changelog for 4.11.0 release

v4.10.0

Toggle v4.10.0's commit message

Verified

This commit was signed with the committer’s verified signature.
everzet Konstantin Kudryashov
List changes to be released under 4.10.0

v4.9.0

Toggle v4.9.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update changelog for 4.9.0

v4.8.0

Toggle v4.8.0's commit message
Update changelog for 4.8.0 release