Skip to content

Commit 195b8bb

Browse files
committed
Restore composer test-coverage using Xdebug
1 parent 63c1d4d commit 195b8bb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@
3535
"scripts": {
3636
"test": [
3737
"simple-phpunit --testdox"
38+
],
39+
"test-coverage": [
40+
"XDEBUG_MODE=coverage ./vendor/bin/simple-phpunit --coverage-html=tests/coverage --colors=always"
3841
]
3942
},
4043
"scripts-descriptions": {
41-
"test": "Run all test suites."
44+
"test": "Run all test suites.",
45+
"test-coverage": "Generate code coverage reports in tests/coverage."
4246
},
4347
"config": {
4448
"preferred-install": "dist",

0 commit comments

Comments
 (0)