Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
/ behat-bootstrap Public archive

Behat 3 init script extension

License

Notifications You must be signed in to change notification settings

andreyors/behat-bootstrap

Repository files navigation

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.