From e1c05beba0fb6526fc6dcdd9f516bc2ef6b55d84 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 13 Nov 2026 01:05:29 +0100 Subject: [PATCH] [TASK] Do not install dependencies before running tests The project-test-* commands in shell.nix ran project-install first. Without a composer.lock every install resolves the latest versions, so two test runs could test different dependencies, and every run needed network access and took longer. Dependencies are installed explicitly with project-install now, like for the composer scripts. Co-Authored-By: Claude Opus 5.5 --- shell.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/shell.nix b/shell.nix index a7cc437..2b32be4 100644 --- a/shell.nix +++ b/shell.nix @@ -144,10 +144,8 @@ let runtimeInputs = [ composer php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" unit ''; }; @@ -157,10 +155,8 @@ let runtimeInputs = [ composer php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" functional ''; }; @@ -169,10 +165,8 @@ let name = "project-test-with-coverage"; runtimeInputs = [ php - projectInstall ]; text = '' - project-install XDEBUG_MODE=coverage .Build/bin/phpunit -c Build/phpunit.xml.dist --coverage-html=coverage_result ''; }; @@ -180,7 +174,6 @@ let projectTestAcceptance = pkgs.writeShellApplication { name = "project-test-acceptance"; runtimeInputs = [ - projectInstall pkgs.sqlite pkgs.firefox pkgs.geckodriver @@ -188,7 +181,6 @@ let php ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/acceptance.sh" "$@" ''; };