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