Merge pull request #1736 from Ragazzo/tests_composer

Tests composer
This commit is contained in:
Qiang Xue
2014-01-02 06:04:45 -08:00
2 changed files with 10 additions and 5 deletions

View File

@@ -20,9 +20,7 @@
"yiisoft/yii2-codeception": "*", "yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*", "yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*", "yiisoft/yii2-gii": "*",
"yiisoft/yii2-swiftmailer": "*", "yiisoft/yii2-swiftmailer": "*"
"codeception/codeception": "*",
"codeception/specify": "*"
}, },
"scripts": { "scripts": {
"post-create-project-cmd": [ "post-create-project-cmd": [

View File

@@ -3,9 +3,16 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece
After creating the basic application, follow these steps to prepare for the tests: After creating the basic application, follow these steps to prepare for the tests:
1. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so 1. To install `Codeception` and its dependencies through composer, run commands:
```
php composer.phar require "codeception/codeception": "*"
php composer.phar require "codeception/specify": "*"
```
2. In the file `_bootstrap.php`, modify the definition of the constant `TEST_ENTRY_URL` so
that it points to the correct entry script URL. that it points to the correct entry script URL.
2. Go to the application base directory and build the test suites: 3. Go to the application base directory and build the test suites:
``` ```
vendor/bin/codecept build vendor/bin/codecept build