🩺(coverage) add config and make rule to compute coverage

Configure pytest-cov settings in pyproject.toml and add make rule
to compute test coverage.
This commit is contained in:
Marie PUPO JEAMMET
2024-08-01 12:27:04 +02:00
committed by Marie
parent ca179b8811
commit c26786a107
3 changed files with 24 additions and 0 deletions

View File

@@ -166,6 +166,10 @@ test-back-parallel: ## run all back-end tests in parallel
bin/pytest -n auto $${args:-${1}}
.PHONY: test-back-parallel
test-coverage: ## compute, display and save test coverage
bin/pytest --cov=. --cov-report json .
.PHONY: test-coverage
makemigrations: ## run django makemigrations for the people project.
@echo "$(BOLD)Running makemigrations$(RESET)"
@$(COMPOSE) up -d postgresql