yii2-netdisk/tests
2013-11-14 11:11:51 -05:00
..
_data Added acceptance tests for the basic app. 2013-06-22 20:26:22 -04:00
_helpers Added acceptance tests for the basic app. 2013-06-22 20:26:22 -04:00
_log Added acceptance tests for the basic app. 2013-06-22 20:26:22 -04:00
acceptance Added readme and updated test helper classes. 2013-11-14 11:11:51 -05:00
functional Added readme and updated test helper classes. 2013-11-14 11:11:51 -05:00
unit Added readme and updated test helper classes. 2013-11-14 11:11:51 -05:00
acceptance.suite.dist.yml Added acceptance tests for the basic app. 2013-06-22 20:26:22 -04:00
functional.suite.dist.yml Fixes #624: renamed www to web. 2013-07-25 07:57:49 -04:00
README.md Added readme and updated test helper classes. 2013-11-14 11:11:51 -05:00
unit.suite.dist.yml Added acceptance tests for the basic app. 2013-06-22 20:26:22 -04:00

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. Install Codeception if you do not have it yet.
  2. Update tests
  3. Create test configuration files based on your environment:
    • Copy acceptance.suite.dist.yml to acceptance.suite.yml and customize it;
    • Copy functional.suite.dist.yml to functional.suite.yml and customize it;
    • Copy unit.suite.dist.yml to unit.suite.yml and customize it.
  4. 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.