Add composer commands for generating coverage reports via Herd

This commit is contained in:
Marcus Moore 2024-09-04 15:13:45 -07:00
parent e1fcfc8dc1
commit 0e9f7153c0
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -47,6 +47,7 @@ storage/private_uploads/users/*
tests/_data/scenarios tests/_data/scenarios
tests/_output/* tests/_output/*
tests/_support/_generated/* tests/_support/_generated/*
tests/coverage/*
/npm-debug.log /npm-debug.log
/storage/oauth-private.key /storage/oauth-private.key
/storage/oauth-public.key /storage/oauth-public.key

View file

@ -120,7 +120,9 @@
], ],
"post-create-project-cmd": [ "post-create-project-cmd": [
"php artisan key:generate" "php artisan key:generate"
] ],
"coverage:herd:clover": "herd coverage vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml",
"coverage:herd:html": "herd coverage vendor/bin/phpunit --coverage-html tests/coverage/html"
}, },
"config": { "config": {
"preferred-install": "dist", "preferred-install": "dist",