andreyors / behat-bootstrap
A Behat extension to automate init actions
Installs: 6 407
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:behat-extension
Requires
- php: >=5.3.3
- behat/behat: ^3.4.3
- symfony/config: ~3.2||~4.0
- symfony/dependency-injection: ~3.2||~4.0
Requires (Dev)
- phake/phake: ^2.3 || ^3.0
- phpunit/phpunit: ^5.7
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.3
This package is not auto-updated.
Last update: 2024-02-25 05:04:30 UTC
README
A Behat extension to automate console operations in order to prepare environment within Symfony 3/4, i.e. preparing initial database state, cleaning redis cache and warming composer cache
Getting started
Prerequisites
- Behat 3
- Composer
Installing
composer require --dev andreyors/behat-bootstrap
Usage
We usually need to prepare behat environment (create a fresh copy of db, clear the cache before, set up rabbitmq queues and exchanges)
Copy and paste behat.yaml
configuration
extensions: AndreyOrs\BehatBootstrap\Loader: bootstrap: - bin/console cache:clear -e test - bin/console cache:warmup -e test - bin/console doctrine:schema:create -e test - bin/console rabbitmq:setup-fabric -e test
Tests
composer test
License
This library is released under the MIT license.