monash/behat-exclude-scenario-name

Allows to exclude scenarios in feature file.

0.0.1 2018-10-15 00:05 UTC

This package is auto-updated.

Last update: 2024-09-18 18:54:03 UTC


README

Allows to exclude scenarios from a feature file

##Usage

  1. Install plugin:

    $composer require monash/behat-exclude-scenario-name --dev
  2. Configure the filter in behat.yml file as below: Add the filter under your suite in which you want to exclude scenarios

    # behat.yml
    default:    
        filters:
        exclude-scenario-names:
            - scenario 1
            - scenario 2
            - scenario 3
  3. Add below lines as extension to make it available for Extension manager:

    # behat.yml
    default:
    ...
        extensions:
            Monash\BehatExcludeScenarioName: ~

    where, '~' means empty arguments. Scenarios to exclude should be added under 'filters' tag in step 2.

  4. That's it, it excludes all the scenarios mentioned under filters: