From ef21b8a47bb76cd09e372c29fc18235a89af63c0 Mon Sep 17 00:00:00 2001
From: Fabrice Gangler <fabrice.gangler@adullact.org>
Date: Tue, 18 Mar 2025 11:08:26 +0100
Subject: [PATCH] chore: do not delete dev database at test launch

---
 Makefile | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/Makefile b/Makefile
index 4a01c85..04517a6 100644
--- a/Makefile
+++ b/Makefile
@@ -103,9 +103,7 @@ tests: ## Run all tests (PhpUnit)
 	cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true
 	cd "${WEBAPP_DIR}" && bin/console doctrine:database:create       --env=test
 	cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=test
-	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n --env=dev
 	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n --env=test
-	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n
 	cd "${WEBAPP_DIR}" &&  XDEBUG_MODE=coverage bin/phpunit --testdox --strict-coverage --configuration phpunit.xml.dist
 # 	cd "${WEBAPP_DIR}" &&  bin/phpunit --no-coverage --configuration phpunit.xml.dist
 # 	cd "${WEBAPP_DIR}" &&  bin/phpunit --coverage-text --configuration phpunit.xml
@@ -116,9 +114,7 @@ tests_gogogo: ## Run "gogogo" group tests (PhpUnit)
 	cd "${WEBAPP_DIR}" && bin/console doctrine:database:drop --force --env=test || true
 	cd "${WEBAPP_DIR}" && bin/console doctrine:database:create       --env=test
 	cd "${WEBAPP_DIR}" && bin/console doctrine:migrations:migrate -n --env=test
-	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n --env=dev
 	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n --env=test
-	cd "${WEBAPP_DIR}" && bin/console doctrine:fixtures:load      -n
 	cd "${WEBAPP_DIR}" && bin/phpunit --testdox --group gogogo --configuration phpunit.xml.dist
 # 	cd "${WEBAPP_DIR}" &&  bin/phpunit --no-coverage --configuration phpunit.xml.dist
 # 	cd "${WEBAPP_DIR}" &&  bin/phpunit --coverage-text --configuration phpunit.xml
-- 
GitLab