Skip to content

Commit b10b7b6

Browse files
authored
Merge pull request Codeception#130 from samdark/patch-2
Switched from using composer exec to directly running commands from vendor
2 parents b5b812c + cf20f8a commit b10b7b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

for/yii.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Once you created a project from a [basic template](https://github.com/yiisoft/yi
2727
Run them by executing in terminal:
2828

2929
```
30-
composer exec codecept run
30+
./vendor/bin/codecept run
3131
```
3232

3333
![Output](/images/yii-basic-tests.png)
@@ -109,7 +109,7 @@ Codeception provides standard set of actions like `amOnPage`, `submitForm`, `see
109109
Functional tests should be written inside [Cest files](http://codeception.com/docs/07-AdvancedUsage#Cest-Classes), which is a scenario-driven test format of Codeception. You can easily create a new test by running:
110110

111111
```
112-
composer exec codecept g:cest functional MyNewScenarioCest
112+
./vendor/bin/codecept g:cest functional MyNewScenarioCest
113113
```
114114
115115
<div class="alert alert-warning">
@@ -123,7 +123,7 @@ composer exec codecept g:cest functional MyNewScenarioCest
123123
API tests are not included in any Yii templates so you need to set up them manually if you developing a web service. API testing is done at functional testing level but instead of testing HTML responses on user actions, they test requests and responses via protocols like REST or SOAP. To start writing api tests you should create a suite for them
124124
125125
```
126-
composer exec codecept g:suite api
126+
./vendor/bin/codecept g:suite api
127127
```
128128
129129
You will need to enable `REST`, `Yii2` module in `tests/api.suite.yml`:
@@ -186,7 +186,7 @@ As it was said, functional and acceptance tests are similar, so in order to avoi
186186
Similar as for functional tests it is recommended to use Cest format for acceptance testing:
187187

188188
```
189-
composer exec codecept g:cest acceptance MyNewScenarioCest
189+
./vendor/bin/codecept g:cest acceptance MyNewScenarioCest
190190
```
191191

192192
<div class="alert alert-warning">
@@ -219,7 +219,7 @@ composer require "codeception/codeception" --dev
219219
Create basic test suites
220220
221221
```
222-
composer exec codecept bootstrap
222+
./vendor/bin/codecept bootstrap
223223
```
224224
225225
Enable module Yii2 for functional tests inside `functional.suite.yml`:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy