Configure coverage via pyproject.toml, show results in CI

This commit is contained in:
Peter Bittner 2025-07-09 12:55:58 +02:00
parent 18b5a73bd3
commit 0f099b8ab4
3 changed files with 8 additions and 2 deletions

View file

@ -1,2 +0,0 @@
[run]
source = analytical

View file

@ -97,6 +97,13 @@ dependencies = [
Homepage = "https://github.com/jazzband/django-analytical"
Documentation = "https://django-analytical.readthedocs.io/"
[tool.coverage.report]
show_missing = true
skip_covered = true
[tool.coverage.run]
source = ["analytical"]
[tool.pytest.ini_options]
addopts = "--junitxml=tests/unittests-report.xml --color=yes --verbose"
DJANGO_SETTINGS_MODULE = "tests.testproject.settings"

View file

@ -35,6 +35,7 @@ deps =
django52: Django>=5.2,<6.0
commands =
coverage run -m pytest {posargs}
coverage report
coverage xml
[testenv:audit]