diff --git a/Makefile b/Makefile index b6cfdd5..bc07dd0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +coverage_opt=--cov --cov-report=term-missing:skip-covered --durations=10 + clean: pipenv --rm @@ -20,7 +22,7 @@ watch_db: test: - pipenv run pytest $(opt) utests + pipenv run pytest $(coverage_opt) $(opt) utests functionnal_tests: pipenv run python -m pytest functionnal_test.py diff --git a/Pipfile b/Pipfile index c0f4fc3..cd70690 100644 --- a/Pipfile +++ b/Pipfile @@ -14,6 +14,7 @@ pytest = "*" selenium = "*" httpx = "*" pdbpp = "*" +pytest-cov = "*" [requires] python_version = "3.11"