mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 14:10:25 +00:00
Configure coverage via pyproject.toml, show results in CI
This commit is contained in:
parent
18b5a73bd3
commit
0f099b8ab4
3 changed files with 8 additions and 2 deletions
|
|
@ -1,2 +0,0 @@
|
|||
[run]
|
||||
source = analytical
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -35,6 +35,7 @@ deps =
|
|||
django52: Django>=5.2,<6.0
|
||||
commands =
|
||||
coverage run -m pytest {posargs}
|
||||
coverage report
|
||||
coverage xml
|
||||
|
||||
[testenv:audit]
|
||||
|
|
|
|||
Loading…
Reference in a new issue