From d19154af318eec2230030cfeaba25e61f6a37123 Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sat, 20 Jun 2026 23:51:13 +0200 Subject: [PATCH] 32 - Add dev-coverage shell helper --- shell.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell.nix b/shell.nix index fede276..6f3be7a 100644 --- a/shell.nix +++ b/shell.nix @@ -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