Ver Fonte

Added readme and updated test helper classes.

Qiang Xue há 12 anos atrás
pai
commit
2dc8a4cc98
4 ficheiros alterados com 2226 adições e 531 exclusões
  1. 7 1
      tests/README.md
  2. 1085 282
      tests/acceptance/WebGuy.php
  3. 1125 242
      tests/functional/TestGuy.php
  4. 9 6
      tests/unit/CodeGuy.php

+ 7 - 1
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.

Diff do ficheiro suprimidas por serem muito extensas
+ 1085 - 282
tests/acceptance/WebGuy.php


Diff do ficheiro suprimidas por serem muito extensas
+ 1125 - 242
tests/functional/TestGuy.php


+ 9 - 6
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