Skip to content

Commit fd5a08d

Browse files
committed
Update test:coverage
1 parent 4a08213 commit fd5a08d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,16 @@
4747
"sniffer:check": "phpcs --standard=phpcs.xml",
4848
"sniffer:fix": "phpcbf --standard=phpcs.xml",
4949
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",
50-
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",
50+
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage",
5151
"test:all": [
5252
"@cs:check",
5353
"@sniffer:check",
5454
"@stan",
5555
"@test"
5656
],
57-
"test:coverage": "php -d xdebug.mode=coverage -r \"require 'vendor/bin/phpunit';\" -- --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
57+
"test:coverage": [
58+
"@putenv XDEBUG_MODE=coverage",
59+
"phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
60+
]
5861
}
5962
}

0 commit comments

Comments
 (0)