[Behat] Set profile tag filter via GherkinOptions for Behat 4.x compatibility

This commit is contained in:
Grzegorz Sadowski 2026-06-19 14:23:27 +02:00
parent a401f22909
commit ecef214327
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -15,6 +15,7 @@ use Behat\Config\Config;
use Behat\Config\Extension;
use Behat\Config\Filter\TagFilter;
use Behat\Config\Formatter\PrettyFormatter;
use Behat\Config\GherkinOptions;
use Behat\Config\Profile;
use Behat\Config\TesterOptions;
use Behat\MinkExtension\ServiceContainer\MinkExtension;
@ -31,7 +32,7 @@ return (new Config())
->withProfile(
(new Profile('default'))
->withFormatter(new PrettyFormatter(paths: false))
->withFilter(new TagFilter('~@todo&&~@cli'))
->withGherkinOptions((new GherkinOptions())->withFilter(new TagFilter('~@todo&&~@cli')))
->withTesterOptions((new TesterOptions())
->withErrorReporting(\E_ALL & ~(\E_DEPRECATED | \E_USER_DEPRECATED)))
->withExtension(new Extension(ChromeExtension::class))