Commit 8775e25c by Qiang Xue

Added readme and updated test helper classes.

parent 220e6dc4
...@@ -4,6 +4,7 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece ...@@ -4,6 +4,7 @@ These tests are developed with [Codeception PHP Testing Framework](http://codece
To run the tests, follow these steps: To run the tests, follow these steps:
1. [Install Codeception](http://codeception.com/quickstart) if you do not have it yet. 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: 2. Create test configuration files based on your environment:
- Copy `acceptance.suite.dist.yml` to `acceptance.suite.yml` and customize it; - 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 `functional.suite.dist.yml` to `functional.suite.yml` and customize it;
...@@ -11,5 +12,10 @@ To run the tests, follow these steps: ...@@ -11,5 +12,10 @@ To run the tests, follow these steps:
3. Switch to the parent folder and run tests: 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.
<?php <?php
// This class was automatically generated by build task // 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 // @codingStandardsIgnoreFile
use Codeception\Maybe;
use \Codeception\Maybe;
use Codeception\Module\CodeHelper; use Codeception\Module\CodeHelper;
/** /**
* Inherited methods * Inherited methods
* @method void execute($callable)
* @method void wantToTest($text) * @method void wantToTest($text)
* @method void wantTo($text) * @method void wantTo($text)
* @method void amTesting($method)
* @method void amTestingMethod($method)
* @method void testMethod($signature)
* @method void expectTo($prediction) * @method void expectTo($prediction)
* @method void expect($prediction) * @method void expect($prediction)
* @method void amGoingTo($argumentation) * @method void amGoingTo($argumentation)
* @method void am($role) * @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 class CodeGuy extends \Codeception\AbstractGuy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment