Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8775e25c
Commit
8775e25c
authored
Nov 14, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added readme and updated test helper classes.
parent
220e6dc4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
README.md
apps/basic/tests/README.md
+7
-1
WebGuy.php
apps/basic/tests/acceptance/WebGuy.php
+0
-0
TestGuy.php
apps/basic/tests/functional/TestGuy.php
+0
-0
CodeGuy.php
apps/basic/tests/unit/CodeGuy.php
+9
-6
No files found.
apps/basic/tests/README.md
View file @
8775e25c
...
...
@@ -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.
apps/basic/tests/acceptance/WebGuy.php
View file @
8775e25c
This diff is collapsed.
Click to expand it.
apps/basic/tests/functional/TestGuy.php
View file @
8775e25c
This diff is collapsed.
Click to expand it.
apps/basic/tests/unit/CodeGuy.php
View file @
8775e25c
<?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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment