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.
- Update tests
- Create test configuration files based on your environment:
- Copy
acceptance.suite.dist.yml
toacceptance.suite.yml
and customize it; - Copy
functional.suite.dist.yml
tofunctional.suite.yml
and customize it; - Copy
unit.suite.dist.yml
tounit.suite.yml
and 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.