From 67bafa2645c351f607c148c018d8b206c99d3bbf Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 13 Nov 2026 01:05:30 +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 61e1c8b..b9ba17a 100644 --- a/shell.nix +++ b/shell.nix @@ -139,10 +139,8 @@ let runtimeInputs = [ composer php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" unit ''; }; @@ -152,10 +150,8 @@ let runtimeInputs = [ composer php - projectInstall ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/phpunit.sh" functional ''; }; @@ -164,10 +160,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 ''; }; @@ -175,7 +169,6 @@ let projectTestAcceptance = pkgs.writeShellApplication { name = "project-test-acceptance"; runtimeInputs = [ - projectInstall pkgs.sqlite pkgs.firefox pkgs.geckodriver @@ -183,7 +176,6 @@ let php ]; text = '' - project-install "$PROJECT_ROOT/Build/Scripts/acceptance.sh" "$@" ''; };