Browse Source

Added readme and updated test helper classes.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
8775e25ca6
  1. 8
      apps/basic/tests/README.md
  2. 1367
      apps/basic/tests/acceptance/WebGuy.php
  3. 1367
      apps/basic/tests/functional/TestGuy.php
  4. 15
      apps/basic/tests/unit/CodeGuy.php

8
apps/basic/tests/README.md

@ -4,6 +4,7 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece
To run the tests, follow these steps:
1. [Install Codeception](http://codeception.com/quickstart) if you do not have it yet.
2. Update tests
2. 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;
@ -11,5 +12,10 @@ To run the tests, follow these steps:
3. Switch to the parent folder and run tests:
```
php codecept.phar run
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](http://codeception.com/docs/01-Introduction) for
more details about writing acceptance, functional and unit tests.

1367
apps/basic/tests/acceptance/WebGuy.php

File diff suppressed because it is too large Load Diff

1367
apps/basic/tests/functional/TestGuy.php

File diff suppressed because it is too large Load Diff

15
apps/basic/tests/unit/CodeGuy.php

@ -1,23 +1,26 @@
<?php
// This class was automatically generated by build task
// You can change it manually, but it will be overwritten on next build
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Codeception\Maybe;
use \Codeception\Maybe;
use Codeception\Module\CodeHelper;
/**
* Inherited methods
* @method void execute($callable)
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void amTesting($method)
* @method void amTestingMethod($method)
* @method void testMethod($signature)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($role)
* @method void lookForwardTo($achieveValue)
* @method void offsetGet($offset)
* @method void offsetSet($offset, $value)
* @method void offsetExists($offset)
* @method void offsetUnset($offset)
*/
class CodeGuy extends \Codeception\AbstractGuy

Loading…
Cancel
Save