monash / behat-exclude-scenario-name
Allows to exclude scenarios in feature file.
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/monash/behat-exclude-scenario-name
Requires
- php: ^7.1
- behat/behat: ^3.1
- symfony/dependency-injection: ^2.8|^3.0
Requires (Dev)
- monash/test-context: ^1.0
- phpspec/phpspec: ^4.0@alpha
This package is auto-updated.
Last update: 2025-12-18 21:20:30 UTC
README
Allows to exclude scenarios from a feature file
##Usage
-
Install plugin:
$composer require monash/behat-exclude-scenario-name --dev -
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
-
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.
-
That's it, it excludes all the scenarios mentioned under filters: