2017 © Pedro Peláez
 

library codeception-multidb

Switch between multiple databases in a Codeception Test

image

natterbox/codeception-multidb

Switch between multiple databases in a Codeception Test

  • Friday, June 17, 2016
  • by redmatter
  • Repository
  • 7 Watchers
  • 5 Stars
  • 135 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 5 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Codeception MultiDb Extension

Downloads License, (*1)

This extension supports multiple dabatase backends, providing equivalant service as the Db module. Additionally it provides capability to safely switch between database connectors and multi-level transaction support., (*2)

Currently the only database supported is MySQL; but it is pretty straight forward to add support for other databases., (*3)

It is still in development, but is stable enough for anyone to give it a try., (*4)

Installation

For codeception v2.0, please use v1.0.0 using the composer command below., (*5)

composer require "redmatter/codeception-multidb: ~1.0.0"

A version that supports codeception v2.1 is under active development. You can install it by using the composer command below., (*6)

composer require "redmatter/codeception-multidb: ~2.0@dev"

NOTE: Even though there has not yet been a stable release for 2.0, it is fully compatible with 1.0 for features and its API. Please do log an issue for any bugs or possible improvemnts you identify., (*7)

Usage

Please see DemoCest and acceptance.suite.yml in examples., (*8)

In order to avoid MultiDb (or even the Db module from codeception) leaving behind modifications in the database, due to the user aborting a test run by pressing Ctrl+C, leading to breaking tests during further runs, consider using the natterbox/codeception-ctrlc module., (*9)

How to contribute?

Please feel free to fork and submit a pull request. Bug fixes and general usability comments would be much appreciated., (*10)

If you are to contribute a feature or bug-fix, please do log an issue before starting to work on the code. Then branch from the appropriate release branch, to make those changes (see below for details)., (*11)

Coding standard that is followed here is PSR-2., (*12)

Why version 2.0?

Version 2.0 will be the branch for migrating MultiDb to Codeception version 2.1., (*13)

What is happening to version 1.0?

Version 1.0 is still a supported version; any major feature additions or bug fixes will be done for both versions., (*14)

Is master the same as 2.0?

It is essentially the same; but for the purpose of submitting pull requests, you should choose the appropriate branch, depending on the codeception version you have developed against., (*15)

The Versions

17/06 2016

dev-master

9999999-dev

Switch between multiple databases in a Codeception Test

  Sources   Download

MIT

The Requires

 

The Development Requires

by dino.korah
by andrew.bulford

17/06 2016

2.0.x-dev

2.0.9999999.9999999-dev

Switch between multiple databases in a Codeception Test

  Sources   Download

MIT

The Requires

 

The Development Requires

by dino.korah
by andrew.bulford

17/06 2016

2.0.0-RC2

2.0.0.0-RC2

Switch between multiple databases in a Codeception Test

  Sources   Download

MIT

The Requires

 

The Development Requires

by dino.korah
by andrew.bulford

17/06 2016

1.0.x-dev

1.0.9999999.9999999-dev

Extension for codeception that makes it possible to switch between and interact with multiple databases. Supports only MySQL for now.

  Sources   Download

MIT

The Requires

 

by dino.korah
by andrew.bulford

17/06 2016

1.0.2

1.0.2.0

Extension for codeception that makes it possible to switch between and interact with multiple databases. Supports only MySQL for now.

  Sources   Download

MIT

The Requires

 

by dino.korah
by andrew.bulford

05/01 2016

1.0.1

1.0.1.0

Extension for codeception that makes it possible to switch between and interact with multiple databases. Supports only MySQL for now.

  Sources   Download

MIT

The Requires

 

by dino.korah
by andrew.bulford

19/11 2015

2.0.0-RC1

2.0.0.0-RC1

Switch between multiple databases in a Codeception Test

  Sources   Download

MIT

The Requires

 

by dino.korah
by andrew.bulford

08/11 2015

1.0.0

1.0.0.0

Extension for codeception that makes it possible to switch between and interact with multiple databases. Supports only MySQL for now.

  Sources   Download

MIT

The Requires

 

by dino.korah
by andrew.bulford