2017 © Pedro Peláez
 

library doctrine-data-fixtures-extension

Doctrine data fixtures extension for Behat

image

behat-extension/doctrine-data-fixtures-extension

Doctrine data fixtures extension for Behat

  • Wednesday, May 23, 2018
  • by Spomky
  • Repository
  • 2 Watchers
  • 13 Stars
  • 48,647 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 23 Forks
  • 1 Open issues
  • 54 Versions
  • 16 % Grown

The README.md

Doctrine Fixtures Extension for Behat

The extension increases feature test isolation by reloading ORM data fixtures between scenarios and features., (*1)

Installation

composer require "behat-extension/doctrine-data-fixtures-extension"

Configuration

Activate extension in your behat.yml and define any fixtures to be loaded:, (*2)

# behat.yml
default:
  # ...
  extensions:
    BehatExtension\DoctrineDataFixturesExtension\Extension:
      lifetime:    'feature'
      directories: ~
      fixtures:    ~

When lifetime is set to "feature" (or unspecified), data fixtures are reloaded between feature files. Alternately, when lifetime is set to "scenario", data fixtures are reloaded between scenarios (i.e., increased test isolation at the expense of increased run time)., (*3)

When fixtures is set, the extension will load the specified fixture classes. This must contain a list of fully qualified class names. Classes MUST not have any constructor arguments (or at least optional). If the interface Symfony\Component\DependencyInjection\ContainerAwareInterface is implemented, the container is set to the fixture loader., (*4)

When directories is set, the extension will load the data fixtures globed from the respective directories. Classes MUST not have any constructor arguments (or at least optional). If the interface Symfony\Component\DependencyInjection\ContainerAwareInterface is implemented, the container is set to the fixture loader., (*5)

This extension will also load every fixtures declared as services and tagged with doctrine.fixture.orm., (*6)

# behat.yml
default:
  # ...
  extensions:
    BehatExtension\DoctrineDataFixturesExtension\Extension:
      lifetime: 'feature'
      directories:
        - '/project/src/AcmeAnalytics/Tests/DataFixtures/ORM'
      fixtures:
        - 'Acme\StoreBundle\DataFixture\ORM\Categories'
        - 'Acme\StoreBundle\DataFixture\ORM\Apps'
        - 'Acme\VendorBundle\DataFixture\ORM\Vendors'

Backup System

To speed up the tests, a backup system is available. The whole database will be set in cache and reloaded when needed. You should periodically clear the cache as it does not detect changes to the data fixture contents because the hash is based on the collection of data fixture class names., (*7)

This feature is only available for SQLite, MySQL and PostgreSQL., (*8)

  • For MySQL, mysql and mysqldump must be available.
  • For PostgreSQL, pg_restore and pg_dump must be available.

It is enabled by default. To disable it, you just have to set use_backup: false in the extension configuration:, (*9)

# behat.yml
default:
  # ...
  extensions:
    BehatExtension\DoctrineDataFixturesExtension\Extension:
      lifetime: 'feature'
      use_backup: false

Source

Github: https://github.com/BehatExtension/DoctrineDataFixturesExtension, (*10)

Forked from https://github.com/vipsoft/DoctrineDataFixturesExtension, (*11)

Copyright

  • Copyright (c) 2012 Anthon Pang.
  • Copyright (c) 2016-2018 Florent Morselli.

See LICENSE for details., (*12)

Contributors

The Versions

05/03 2018

v4.0.x-dev

4.0.9999999.9999999-dev http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

05/03 2018

dev-Doc

dev-Doc http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

25/02 2018

dev-analysis-qJ9ZPa

dev-analysis-qJ9ZPa http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

24/02 2018
24/02 2018
24/02 2018

dev-analysis-qJ9Z7D

dev-analysis-qJ9Z7D http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

24/02 2018

dev-analysis-87DOQN

dev-analysis-87DOQN http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

24/02 2018

dev-analysis-qgwkZE

dev-analysis-qgwkZE http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

24/02 2018

dev-analysis-XW3njj

dev-analysis-XW3njj http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

28/09 2017

v4.0.1

4.0.1.0 http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

04/11 2016

dev-analysis-8QeRAo

dev-analysis-8QeRAo http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

26/04 2016

v4.0.0

4.0.0.0 http://github.com/BehatExtension/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

07/10 2015

3.0.0

3.0.0.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

19/08 2014

2.5.x-dev

2.5.9999999.9999999-dev http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

19/08 2014

2.5.6

2.5.6.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

14/07 2014

2.5.5

2.5.5.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

29/05 2014

2.5.4

2.5.4.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

22/05 2014

2.5.3

2.5.3.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

22/05 2014
16/05 2014
04/02 2014
20/01 2014

0.10.3

0.10.3.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

20/01 2014

0.10.2

0.10.2.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

18/09 2013

0.10.1

0.10.1.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

17/09 2013
10/09 2013

dev-tPl0ch-feature-fixture-aware-interface

dev-tPl0ch-feature-fixture-aware-interface http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

by Anthon Pang

bdd doctrine behat data fixtures

12/03 2013
12/03 2013
12/03 2013
07/03 2013
20/01 2013
23/10 2012

v0.9.10

0.9.10.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

17/10 2012

v0.9.9

0.9.9.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

08/09 2012

v0.9.8

0.9.8.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

07/09 2012

v0.9.7

0.9.7.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

30/08 2012

v0.9.6

0.9.6.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

30/08 2012

v0.9.5

0.9.5.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

29/08 2012

v0.9.4

0.9.4.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

29/08 2012

v0.9.3

0.9.3.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

07/08 2012

v0.9.2

0.9.2.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

06/08 2012

v0.9.1

0.9.1.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures

06/08 2012

v0.9

0.9.0.0 http://github.com/vipsoft/

Doctrine data fixtures extension for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anthon Pang

bdd doctrine behat data fixtures