From c1a620f593930f59da78e649d4f5accbe4e436fd Mon Sep 17 00:00:00 2001 From: Matthieu Date: Wed, 15 Apr 2026 17:19:35 +0200 Subject: [PATCH] build(core) : RBAC #345 - nuxt-test and test-all makefile targets --- makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makefile b/makefile index 9e80969..8898584 100644 --- a/makefile +++ b/makefile @@ -59,6 +59,10 @@ nuxt-lint: nuxt-lint-fix: $(EXEC_PHP) sh -c "cd frontend && npm run lint:fix" +# Lance les tests unitaires frontend (Vitest) +nuxt-test: + $(EXEC_PHP) sh -c "cd frontend && npm run test" + delete_built_dir: CURRENT_UID=$(shell id -u) CURRENT_GID=$(shell id -g) $(DOCKER_COMPOSE) up -d $(DOCKER) exec -u root $(PHP_CONTAINER) rm -rf vendor/ @@ -133,5 +137,8 @@ php-cs-fixer-allow-risky: test: $(EXEC_PHP) php -d memory_limit="512M" vendor/bin/phpunit $(FILES) +# Lance l'ensemble des tests (PHPUnit back + Vitest front) +test-all: test nuxt-test + wait: sleep 10