|
|
пре 11 година | |
|---|---|---|
| .. | ||
| _data | пре 12 година | |
| _helpers | пре 11 година | |
| _log | пре 12 година | |
| _pages | пре 12 година | |
| acceptance | пре 12 година | |
| functional | пре 12 година | |
| unit | пре 11 година | |
| .gitignore | пре 12 година | |
| README.md | пре 11 година | |
| _bootstrap.php | пре 12 година | |
| _config.php | пре 11 година | |
| _console_bootstrap.php | пре 12 година | |
| acceptance.suite.yml | пре 12 година | |
| functional.suite.yml | пре 12 година | |
| unit.suite.yml | пре 12 година | |
This folder contains various tests for the basic application. These tests are developed with Codeception PHP Testing Framework.
After creating the basic application, follow these steps to prepare for the tests:
php composer.phar require --dev "codeception/codeception: 2.0.*" "codeception/specify: *" "codeception/verify: *"
_bootstrap.php, modify the definition of the constant TEST_ENTRY_URL so
that it points to the correct entry script URL. vendor/bin/codecept build
Now you can run the tests with the following commands:
# run all available tests
vendor/bin/codecept run
# run acceptance tests
vendor/bin/codecept run acceptance
# run functional tests
vendor/bin/codecept run functional
# run unit tests
vendor/bin/codecept run unit
Please refer to Codeception tutorial for more details about writing and running acceptance, functional and unit tests.