bex / behat-skip-tests
Extension for behat to enable skipping tests without excluding them from the output
Installs: 348 380
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: >=5.4
- behat/behat: ^3.0.0
Requires (Dev)
- behat/mink-selenium2-driver: ^1.3.0
- bex/behat-test-runner: dev-master
- jakoch/phantomjs-installer: ^1.9.8
- phpspec/phpspec: 2.4.0-alpha2
This package is auto-updated.
Last update: 2024-11-29 04:57:48 UTC
README
Behat-SkipTestsExtension allows you to skip tests without excluding them from the output.
Installation
Install by adding to your composer.json
:
composer require --dev bex/behat-skip-tests
Configuration
Enable the extension in behat.yml
like this:
default: extensions: Bex\Behat\SkipTestsExtension: ~
You can disable the scenario skipping like this:
default: extensions: Bex\Behat\SkipTestsExtension: skip_scenarios: false
You can disable the feature skipping like this:
default: extensions: Bex\Behat\SkipTestsExtension: skip_features: false
You can configure the skip tags like this:
default: extensions: Bex\Behat\SkipTestsExtension: skip_tags: ['myawesometag'] # default: ['pending', 'skip']
Usage
Add a skip tag to any scenario to skip all steps within that scenario.
By default you can use the @pending
or @skip
tags to skip a scenario, but you can configure your own skip tags as well (see configuration above).
See example in this feature file.