sylius-labs / suite-tags-extension
Filters suites run by their configured tags
Installs: 304 872
Dependents: 27
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- behat/behat: ^3.4 || ^4.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- symfony/process: ^4.4 || ^5.0 || ^6.0
README
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.
Usage
-
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"