You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
12 years ago | |
|---|---|---|
| .. | ||
| _data | 13 years ago | |
| _helpers | 12 years ago | |
| _log | 13 years ago | |
| _pages | 12 years ago | |
| acceptance | 12 years ago | |
| functional | 12 years ago | |
| unit | 12 years ago | |
| .gitignore | 12 years ago | |
| README.md | 12 years ago | |
| _bootstrap.php | 12 years ago | |
| acceptance.suite.yml | 12 years ago | |
| functional.suite.yml | 12 years ago | |
| unit.suite.dist.yml | 12 years ago | |
README.md
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:
- Download Codeception(Quickstart step 1) and put the codeception.phar in the
application base directory (not in this
testsdirectory!). - Adjust the test configuration files based on your environment:
- Configure the URL for acceptance tests in
acceptance.suite.yml. The URL should point to theindex-test-acceptance.phpfile that is located under thewebdirectory of the application. functional.suite.ymlfor functional testing andunit.suite.ymlfor unit testing should already work out of the box and should not need to be adjusted.
- Configure the URL for acceptance tests in
- Go to the application base directory and build the test suites:
php codecept.phar build // rebuild test scripts, only need to be run once - Run the tests:
php codecept.phar run // run all available tests // you can also run a test suite alone: php codecept.phar run acceptance php codecept.phar run functional php codecept.phar run unit
Please refer to Codeception tutorial for more details about writing acceptance, functional and unit tests.