adds test command to makefile and readme

This commit is contained in:
msramalho
2025-03-17 18:06:42 +00:00
parent 7bef0b3921
commit 1a3546c09e
2 changed files with 9 additions and 0 deletions

View File

@@ -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 ]

View File

@@ -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