Skip to content

Commit

Permalink
test command
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed May 12, 2024
1 parent 439e9cb commit 743f073
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ help:
@echo " \033[36mInstall dependencies\033[0m"
@echo " \033[1mformat-lint \033[37m(fl\033[0m)"
@echo " \033[36mFormats and lints python files\033[0m"
@echo " \033[1mtest \033[37m(t\033[0m)"
@echo " \033[36mRun tests\033[0m"
@echo " \033[1mbuild-service-image \033[37m(bsi\033[0m)"
@echo " \033[36mBuild image for service (tesk_core)\033[0m"
@echo " \033[36mEg: make bsi IMAGE=filer TAG=1.1.0\033[0m"
Expand Down Expand Up @@ -166,4 +168,17 @@ clean-service-image-all:
@make clean-service-image IMAGE=taskmaster TAG=$(TAG)

.PHONY: csia
csia: clean-service-image-all
csia: clean-service-image-all

.PHONY: test
test:
@if [ -x "$(POETRY_CMD)" ]; then \
$(POETRY_CMD) run pytest tests; \
elif [ -f .venv/bin/pytest ]; then \
.venv/bin/pytest tests; \
else \
echo "⬇️ Install dependencies, create virtual environment using 'make v', and install using 'make i'."; \
fi

.PHONY: t
t: test

0 comments on commit 743f073

Please sign in to comment.