davidjeddy / codeception-yii2-migration-runner
Codeception extension for running Yii2 migrations.
dev-master
2017-07-11 20:46 UTC
Requires
- php: ^7
- codeception/codeception: ^2
This package is auto-updated.
Last update: 2024-11-05 18:31:13 UTC
README
Codeception extension that will run Yii2 migration commands and provide the output as a dump file. This is typically then
picked up by the Codeception Db extension and loaded before each test is executed. The migration output, however, is only
runs during the codeception build
execution.
BADGES
Add Sensiolabs quality here
REQUIREMENTS
Usage of Codeception's Database module
Important: You must have creditials for a user with permission to create a database schema.
INSTALLATION
cd {project root}
- Run
composer require davidjeddy/codecept-yii2-migration-runner
in terminal- OR add
"davidjeddy/codecept-yii2-migration-runner": "dev-master@dev"
to your project'scomposer.json
, then runcomposer update
.
- OR add
CONFIGURATION
Edit codeception.yml adding the migration commands
USAGE
- Recreate a database scheme named
{TEST_DB_SCHEMA}-remigrate
. - Execute the Codeception build command.
- Run Codeception test suite.