mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 17:07:33 +08:00
This folder contains various tests for the basic application. These tests are developed with Codeception PHP Testing Framework.
To run the tests, follow these steps:
- Install Codeception if you do not have it yet.
- Create test configuration files based on your environment:
- Copy
acceptance.suite.dist.ymltoacceptance.suite.ymland customize it; - Copy
functional.suite.dist.ymltofunctional.suite.ymland customize it; - Copy
unit.suite.dist.ymltounit.suite.ymland customize it.
- Copy
- Switch to the parent folder and run tests:
cd ..
php codecept.phar build // rebuild test scripts, only need to be run once
php codecept.phar run // run all available tests
Please refer to Codeception tutorial for more details about writing acceptance, functional and unit tests.