Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iripvanwinkle/codeception-migration
The migration extension for Codeception with Yii2
https://github.com/iripvanwinkle/codeception-migration
codeception migration yii2
Last synced: about 2 months ago
JSON representation
The migration extension for Codeception with Yii2
- Host: GitHub
- URL: https://github.com/iripvanwinkle/codeception-migration
- Owner: iRipVanWinkle
- License: mit
- Created: 2016-11-17T22:38:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-08T12:12:43.000Z (over 7 years ago)
- Last Synced: 2024-11-14T21:42:45.668Z (2 months ago)
- Topics: codeception, migration, yii2
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# The migration extension for Codeception (Yii2)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/iripvanwinkle/codeception-migration/master/LICENSE.md) [![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat-square)](http://www.yiiframework.com/) [![Codeception](https://img.shields.io/badge/Powered_by-Codeception-orange.svg?style=flat-square)](http://codeception.com/)
## Install
Via Composer
```bash
$ composer require iripvanwinkle/codeception-migration
```
## Config* `configFile` *required* - the path to the application config file. File should be configured for test environment and return configuration array.
* `migrationPath` - the path to your migrations folder. May use yii2 alias.
* `migrationNamespaces` - list of namespaces containing the migration classes. May corresponds with the [autoloading conventions](https://github.com/yiisoft/yii2/blob/master/docs/guide/concept-autoloading.md) of Yii.
* `entryUrl` - initial application url (default: http://localhost/index-test.php).
* `entryScript` - front script title (like: index-test.php). If not set - taken from entryUrl.
## UsageYou can use this extension by setting params in your codeception.yml:
```yaml
extensions:
enabled:
- Codeception\Extension\Migration
config:
Codeception\Extension\Migration:
configFile:
migrationPath:
```## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.