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