Adds the --suite-tags
option to Behat CLI, which isolates loaded suites and contexts to those specified. Functionally works similarly to the --tags
option, but provides better isolation.
-
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"