Suite Tags Extension

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

  1. Install it:

    $ composer require sylius-labs/suite-tags-extension --dev
  2. Enable it in your Behat configuration:

    # behat.yml
    default:
        # ...
        extensions:
            SyliusLabs\SuiteTagsExtension: ~
  3. 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"