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
57f8118f
Commit
57f8118f
authored
Jul 24, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted docs to use global phpunit and codeception installation
parent
678f3757
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
getting-started.md
docs/internals/getting-started.md
+18
-9
No files found.
docs/internals/getting-started.md
View file @
57f8118f
...
@@ -24,10 +24,10 @@ Unit tests
...
@@ -24,10 +24,10 @@ Unit tests
To run the unit tests you have to install composer packages for the dev-repo.
To run the unit tests you have to install composer packages for the dev-repo.
Run
`composer update`
in the repo root directory to get the latest packages.
Run
`composer update`
in the repo root directory to get the latest packages.
You can now execute unit tests by running
`
./vendor/bin/
phpunit`
.
You can now execute unit tests by running
`phpunit`
.
You may limit the tests to a group of tests you are working on e.g. to run only tests for the validators and redis
You may limit the tests to a group of tests you are working on e.g. to run only tests for the validators and redis
`
./vendor/bin/
phpunit --group=validators,redis`
.
`phpunit --group=validators,redis`
.
Functional and acceptance tests
Functional and acceptance tests
-------------------------------
-------------------------------
...
@@ -37,9 +37,6 @@ to test. Add the following four packages to your `composer.json` `require-dev` s
...
@@ -37,9 +37,6 @@ to test. Add the following four packages to your `composer.json` `require-dev` s
```
```
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-codeception": "*",
"codeception/codeception": "2.0.*",
"codeception/specify": "*",
"codeception/verify": "*"
```
```
For advanced application you may need
`yiisoft/yii2-faker: *`
as well.
For advanced application you may need
`yiisoft/yii2-faker: *`
as well.
...
@@ -51,16 +48,16 @@ After package installation is complete you can run the following for basic app:
...
@@ -51,16 +48,16 @@ After package installation is complete you can run the following for basic app:
```
```
cd apps/basic
cd apps/basic
vendor/bin/
codecept build
codecept build
vendor/bin/
codecept run
codecept run
```
```
For advanced application frontend it will be:
For advanced application frontend it will be:
```
```
cd apps/advanced/frontend
cd apps/advanced/frontend
../vendor/bin/
codecept build
codecept build
../vendor/bin/
codecept run
codecept run
```
```
Note that you need a running webserver in order to pass acceptance tests. That can be easily achieved with PHP's built-in
Note that you need a running webserver in order to pass acceptance tests. That can be easily achieved with PHP's built-in
...
@@ -71,6 +68,18 @@ cd apps/advanced/frontend/www
...
@@ -71,6 +68,18 @@ cd apps/advanced/frontend/www
php -S 127.0.0.1:8080 index-test.php
php -S 127.0.0.1:8080 index-test.php
```
```
Note that you should have Codeception and PHPUnit installed globally:
```
composer global require "phpunit/phpunit=4.1.*"
composer global require "codeception/codeception=2.0.*"
composer global require "codeception/specify=*"
composer global require "codeception/verify=*"
```
After running commands you'll see "Changed current directory to /your/global/composer/dir" message. If it's the
first time you're installing a package globally you need to add
`/your/global/composer/dir/vendor/bin/`
to your
`PATH`
.
Extensions
Extensions
----------
----------
...
...
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