do not use composer exec
for running codeception
it produces weird behavior. fixes #104
This commit is contained in:
parent
b3e97d7940
commit
9035c63988
@ -26,4 +26,4 @@ install:
|
|||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
php -S localhost:8080 -t web > /dev/null 2>&1 &
|
php -S localhost:8080 -t web > /dev/null 2>&1 &
|
||||||
composer exec codecept run
|
vendor/bin/codecept run
|
14
README.md
14
README.md
@ -116,7 +116,7 @@ By default there are 3 test suites:
|
|||||||
Tests can be executed by running
|
Tests can be executed by running
|
||||||
|
|
||||||
```
|
```
|
||||||
composer exec codecept run
|
vendor/bin/codecept run
|
||||||
```
|
```
|
||||||
|
|
||||||
The command above will execute unit and functional tests. Unit tests are testing the system components, while functional
|
The command above will execute unit and functional tests. Unit tests are testing the system components, while functional
|
||||||
@ -164,13 +164,13 @@ To execute acceptance tests do the following:
|
|||||||
|
|
||||||
```
|
```
|
||||||
# run all available tests
|
# run all available tests
|
||||||
composer exec codecept run
|
vendor/bin/codecept run
|
||||||
|
|
||||||
# run acceptance tests
|
# run acceptance tests
|
||||||
composer exec codecept run acceptance
|
vendor/bin/codecept run acceptance
|
||||||
|
|
||||||
# run only unit and functional tests
|
# run only unit and functional tests
|
||||||
composer exec codecept run unit,functional
|
vendor/bin/codecept run unit,functional
|
||||||
```
|
```
|
||||||
|
|
||||||
### Code coverage support
|
### Code coverage support
|
||||||
@ -180,13 +180,13 @@ to collect code coverage. You can run your tests and collect coverage with the f
|
|||||||
|
|
||||||
```
|
```
|
||||||
#collect coverage for all tests
|
#collect coverage for all tests
|
||||||
composer exec codecept run -- --coverage-html --coverage-xml
|
vendor/bin/codecept run -- --coverage-html --coverage-xml
|
||||||
|
|
||||||
#collect coverage only for unit tests
|
#collect coverage only for unit tests
|
||||||
composer exec codecept run unit -- --coverage-html --coverage-xml
|
vendor/bin/codecept run unit -- --coverage-html --coverage-xml
|
||||||
|
|
||||||
#collect coverage for unit and functional tests
|
#collect coverage for unit and functional tests
|
||||||
composer exec codecept run functional,unit -- --coverage-html --coverage-xml
|
vendor/bin/codecept run functional,unit -- --coverage-html --coverage-xml
|
||||||
```
|
```
|
||||||
|
|
||||||
You can see code coverage output under the `tests/_output` directory.
|
You can see code coverage output under the `tests/_output` directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user