From 041e94edaf6ef15fdbc760375a292f28ca5d172d Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Mon, 7 Oct 2024 11:51:06 +0000 Subject: [PATCH] test: add target to execute tests locally --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 9e7f75f..220ebf4 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,15 @@ compose_ps: ## status of containers compose_remote: ## connect to remote node @$(COMPOSE) exec app ./priv/docker/service/docker-remote.sh +.PHONY: compose_test +compose_test: ## execute test on docker environment + @$(COMPOSE) --profile test run --rm test + +.PHONY: compose_test_shell +compose_test_shell: ## enter test environment shell + @$(COMPOSE) --profile test run --rm --entrypoint bash test -c bash + .PHONY: help help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' +