Download the PHP package lucasbustamante/db-dumper-for-codeception without Composer
On this page you can find all versions of the php package lucasbustamante/db-dumper-for-codeception. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lucasbustamante/db-dumper-for-codeception
More information about lucasbustamante/db-dumper-for-codeception
Files in lucasbustamante/db-dumper-for-codeception
Package db-dumper-for-codeception
Short Description Easily generates database dumps to be used in Codeception.
License MIT
Informations about the package db-dumper-for-codeception
Install
composer require --dev lucasbustamante/db-dumper-for-codeception
Add the command to your codeception.yml
:
On a suite that uses a Codeception\Modules\Db
module (or any module that extends Db
), add these parameters:
Replace %DUMP_DB_HOST%
and similars with your actual values. This should be your local development database, from which the dumps will be generated from.
Usage
Run ./vendor/bin/codecept dump <suite>
In the first run, a Dump config file will be generated at tests/data/<dump>.sql.php
where you can fine-tune how your dump will be generated. On the subsequent runs, it will generate the dump based on the config. If you don't override any config, it will just do a full dump of the database.
This library is basically a Codeception wrapper around https://packagist.org/packages/ifsnop/mysqldump-php.
You can check their documentation to get more information on how exactly you can fine-tune your dump.
All versions of db-dumper-for-codeception with dependencies
lucasbustamante/mysqldump-php Version 2.9.6
symfony/var-exporter Version ^4.0 || ^5.0