Skip to content

Commit 0e9f715

Browse files
committed
Add composer commands for generating coverage reports via Herd
1 parent e1fcfc8 commit 0e9f715

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ storage/private_uploads/users/*
4747
tests/_data/scenarios
4848
tests/_output/*
4949
tests/_support/_generated/*
50+
tests/coverage/*
5051
/npm-debug.log
5152
/storage/oauth-private.key
5253
/storage/oauth-public.key

composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@
120120
],
121121
"post-create-project-cmd": [
122122
"php artisan key:generate"
123-
]
123+
],
124+
"coverage:herd:clover": "herd coverage vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml",
125+
"coverage:herd:html": "herd coverage vendor/bin/phpunit --coverage-html tests/coverage/html"
124126
},
125127
"config": {
126128
"preferred-install": "dist",

0 commit comments

Comments
 (0)