Carsten Brandt 8eb088355b adjusted tests to run on php browser and selenium 12 سال پیش
..
_data 955f351e6d Added acceptance tests for the basic app. 12 سال پیش
_helpers 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
_log 955f351e6d Added acceptance tests for the basic app. 12 سال پیش
_pages 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
acceptance 8eb088355b adjusted tests to run on php browser and selenium 12 سال پیش
functional f22abd70e2 removed auto generated files from repo 12 سال پیش
unit f22abd70e2 removed auto generated files from repo 12 سال پیش
.gitignore f22abd70e2 removed auto generated files from repo 12 سال پیش
README.md 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
_bootstrap.php 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
acceptance.suite.yml 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
functional.suite.yml 09237c013e cleanup and re-aranged codeception tests for basic app 12 سال پیش
unit.suite.dist.yml f22abd70e2 removed auto generated files from repo 12 سال پیش

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:

  1. Download Codeception(Quickstart step 1) and put the codeception.phar in the application base directory (not in this tests directory!).
  2. Adjust the test configuration files based on your environment:
    • Configure the URL for acceptance tests in acceptance.suite.yml. The URL should point to the index-test-acceptance.php file that is located under the web directory of the application.
    • functional.suite.yml for functional testing and unit.suite.yml for unit testing should already work out of the box and should not need to be adjusted.
  3. Go to the application base directory and build the test suites: php codecept.phar build // rebuild test scripts, only need to be run once
  4. 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.