[tests,dependencies] install and configure coverage reports

The reports will be printed on the terminal and written in xml.

A new just recipe is added as well: `just cov`

closes: #9
This commit is contained in:
bronsen 2025-03-18 00:12:51 +01:00
parent fe28b914be
commit 60344a0cf5
5 changed files with 26 additions and 2 deletions

View file

@ -24,6 +24,25 @@ addopts = [
"--capture=sys",
]
[tool.coverage]
branch = true
[tool.coverage.report]
skip_covered = true
skip_empty = true
show_missing = true
[tool.coverage.run]
omit = [
"*/migrations/*",
"VERSION.py",
"manage.py",
"config/[aw]sgi.py",
]
[tool.coverage.xml]
output = "reports/coverage/coverage.xml"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"