Adds the --suite-tags
option to Behat CLI, which allows to run suites configured with specific tags.
-
Install it:
$ composer require sylius-labs/suite-tags-extension --dev
-
Enable it in your Behat configuration:
# behat.yml default: # ... extensions: SyliusLabs\SuiteTagsExtension: ~
-
Set the option while running Behat:
$ vendor/bin/behat --suite-tags="domain" $ vendor/bin/behat --suite-tags="~domain" $ vendor/bin/behat --suite-tags="domain,ui" $ vendor/bin/behat --suite-tags="domain&&ui"