32 - Add dev-coverage shell helper
This commit is contained in:
parent
bebc0427b9
commit
d19154af31
1 changed files with 7 additions and 0 deletions
|
|
@ -103,6 +103,13 @@ pkgs.mkShell {
|
||||||
$COMPOSE exec php php bin/phpunit "$@"
|
$COMPOSE exec php php bin/phpunit "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev-coverage() {
|
||||||
|
# Code coverage as a plain text table in the terminal (needs Xdebug, which is installed).
|
||||||
|
# --colors=never keeps the table readable (the ANSI colors garble it).
|
||||||
|
# Pass-through args, e.g. scope to one class: dev-coverage --filter BucketRoomCalculator
|
||||||
|
$COMPOSE exec -e XDEBUG_MODE=coverage php php bin/phpunit --coverage-text --colors=never "$@"
|
||||||
|
}
|
||||||
|
|
||||||
dev-stan() {
|
dev-stan() {
|
||||||
# Warm the dev cache so phpstan-symfony can read the compiled container, then analyse.
|
# Warm the dev cache so phpstan-symfony can read the compiled container, then analyse.
|
||||||
$COMPOSE exec php php bin/console cache:warmup --quiet
|
$COMPOSE exec php php bin/console cache:warmup --quiet
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue