sylius-labs/suite-tags-extension

Filters suites run by their configured tags

v0.2 2024-03-04 12:02 UTC

This package is auto-updated.

Last update: 2024-04-08 11:18:09 UTC


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

  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"