32 - Add dev-coverage shell helper

This commit is contained in:
myrmidex 2026-06-20 23:51:13 +02:00
parent bebc0427b9
commit d19154af31

View file

@ -103,6 +103,13 @@ pkgs.mkShell {
$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() {
# Warm the dev cache so phpstan-symfony can read the compiled container, then analyse.
$COMPOSE exec php php bin/console cache:warmup --quiet