Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.

## Usage

You 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.