mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-12 13:38:33 +03:00
adds test command to makefile and readme
This commit is contained in:
6
Makefile
6
Makefile
@@ -2,6 +2,12 @@
|
|||||||
lint:
|
lint:
|
||||||
poetry run pre-commit run --all-files
|
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
|
.PHONY: clean-dev
|
||||||
clean-dev:
|
clean-dev:
|
||||||
@echo -n "Are you sure? [yes/N] (this will delete volumes) " && read ans && [ $${ans:-N} = yes ]
|
@echo -n "Are you sure? [yes/N] (this will delete volumes) " && read ans && [ $${ans:-N} = yes ]
|
||||||
|
|||||||
@@ -124,6 +124,9 @@ git commit --no-verify
|
|||||||
|
|
||||||
# see the Makefile for more commands, but linting and formatting can be done with
|
# see the Makefile for more commands, but linting and formatting can be done with
|
||||||
make lint
|
make lint
|
||||||
|
|
||||||
|
# run all tests
|
||||||
|
make test
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
|
|||||||
Reference in New Issue
Block a user