zayon / behat-gather-context-extension
A Behat extension to automatically gather contexts
Installs: 1 886
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:behat-extension
Requires
- php: ^7.4 || ^8.0
- behat/behat: ^3.0.0
Requires (Dev)
- phpunit/phpunit: ^9.6
- symfony/process: ^5.4
README
Table of contents
Installation
Compatible with PHP 7.4 and later.
Compatible with Behat 3.0.0 and later
- Require this extension using Composer
composer require --dev zayon/behat-gather-context-extension
- Enable it within your Behat configuration:
# behat.yaml.dist / behat.yaml default: extensions: Zayon\BehatGatherContextExtension\ContextGathererExtension: ~
Usage
<?php # tests/Behat/DemoContext.php namespace Acme\Tests\Behat; use Behat\Behat\Context\Context; final class DemoContext implements Context { // a beforeScenario hook will automatically be created to gather AnotherContext private AnotherContext $anotherContext; }
Versioning and release cycle
This package follows semantic versioning.
License
This extension is completely free and released under permissive MIT license.