Skip to content

Commit

Permalink
docs: add test target in makefile template
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-tilleuls committed Oct 16, 2023
1 parent e5eaa14 commit 71f3917
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/makefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SYMFONY = $(PHP) bin/console

# Misc
.DEFAULT_GOAL = help
.PHONY : help build up start down logs sh composer vendor sf cc
.PHONY : help build up start down logs sh composer vendor sf cc test

## —— 🎵 🐳 The Symfony Docker Makefile 🐳 🎵 ——————————————————————————————————
help: ## Outputs this help screen
Expand All @@ -71,6 +71,11 @@ logs: ## Show live logs
sh: ## Connect to the FrankenPHP container
@$(PHP_CONT) sh

test: ## Start tests with phpunit, pass the parameter "c=" to add options to phpunit, example: make test c="--group e2e --stop-on-failure"
@$(eval c ?=)
@$(DOCKER_COMP) exec -e APP_ENV=test php bin/phpunit $(c)


## —— Composer 🧙 ——————————————————————————————————————————————————————————————
composer: ## Run composer, pass the parameter "c=" to run a given command, example: make composer c='req symfony/orm-pack'
@$(eval c ?=)
Expand Down

0 comments on commit 71f3917

Please sign in to comment.