09237c013e
follow up to PR #1393 |
||
---|---|---|
.. | ||
_data | ||
_helpers | ||
_log | ||
_pages | ||
acceptance | ||
functional | ||
unit | ||
_bootstrap.php | ||
acceptance.suite.yml | ||
functional.suite.yml | ||
README.md | ||
unit.suite.dist.yml |
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
tests
directory!). - 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.php
file that is located under theweb
directory of the application. functional.suite.yml
for functional testing andunit.suite.yml
for 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.