andreyors / behat-bootstrap

Behat 3 init script extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behat Bootstrap

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.

About

Behat 3 init script extension

License:MIT License


Languages

Language:PHP 100.0%