Skip to content

Commit eed9488

Browse files
committed
Upd composer scripts
1 parent 4c4c42f commit eed9488

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"php tests/yii migrate --migrationPath=@tests/migrations/ --interactive=0"
2626
],
2727
"test": "phpunit --colors=always",
28-
"test-coverage": "phpunit --coverage-html=tests/tmp/coverage.html --colors=always",
29-
"test-coverage-show": "open tests/tmp/coverage.html/index.html"
28+
"test-coverage": "phpunit --coverage-text --colors=always",
29+
"test-coverage-html": "phpunit --coverage-html=tests/tmp/coverage.html --colors=always",
30+
"test-coverage-html-open": "open tests/tmp/coverage.html/index.html"
3031
},
3132
"autoload": {
3233
"psr-4": {

tests/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@
1818
composer test-coverage
1919
```
2020

21+
or
22+
23+
```
24+
composer test-coverage-html
25+
```
26+
2127
4. Show coverage dashboard
2228

2329
```
24-
composer test-coverage-show
30+
composer test-coverage-html-open
2531
```

0 commit comments

Comments
 (0)