🩺(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

@@ -137,3 +137,22 @@ python_files = [
"test_*.py",
"tests.py",
]
[tool.coverage.run]
branch = true
omit = [
"*/admin.py",
"*/migrations/*",
"*/tests/*",
"*/urls.py",
"manage.py",
"celery_app.py",
"wsgi.py",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
[tool.coverage.json]
pretty_print = true