From 2a02a839b70c4a6c76df384a59d2cd74bf0d76f8 Mon Sep 17 00:00:00 2001 From: Colin Goutte Date: Fri, 25 Aug 2023 23:28:03 +0200 Subject: [PATCH] Candy: add test coverage --- Makefile | 4 +++- Pipfile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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"