andreyors/behat-bootstrap

This package is abandoned and no longer maintained. No replacement package was suggested.

A Behat extension to automate init actions

Installs: 6 297

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Type:behat-extension

0.4.2 2018-07-01 10:30 UTC

This package is not auto-updated.

Last update: 2024-02-25 05:04:30 UTC


README

Latest Stable Version Build Status Downloads codecov Deps Scrutinizer Code Quality License PHP 7 ready

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.