From 1a3546c09e45833d7e293ce44d64a17904fde85e Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 17 Mar 2025 18:06:42 +0000 Subject: [PATCH] adds test command to makefile and readme --- Makefile | 6 ++++++ README.md | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Makefile b/Makefile index ddda086..05a4bff 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,12 @@ lint: poetry run pre-commit run --all-files +.PHONY: test +test: + export ENVIRONMENT_FILE=.env.test + poetry run coverage run -m pytest -v --disable-warnings --color=yes app/tests/ + poetry run coverage report + .PHONY: clean-dev clean-dev: @echo -n "Are you sure? [yes/N] (this will delete volumes) " && read ans && [ $${ans:-N} = yes ] diff --git a/README.md b/README.md index 079a747..16ed669 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,9 @@ git commit --no-verify # see the Makefile for more commands, but linting and formatting can be done with make lint + +# run all tests +make test ``` ### Testing