mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20: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"
|
Homepage = "https://github.com/jazzband/django-analytical"
|
||||||
Documentation = "https://django-analytical.readthedocs.io/"
|
Documentation = "https://django-analytical.readthedocs.io/"
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
show_missing = true
|
||||||
|
skip_covered = true
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
source = ["analytical"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--junitxml=tests/unittests-report.xml --color=yes --verbose"
|
addopts = "--junitxml=tests/unittests-report.xml --color=yes --verbose"
|
||||||
DJANGO_SETTINGS_MODULE = "tests.testproject.settings"
|
DJANGO_SETTINGS_MODULE = "tests.testproject.settings"
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -35,6 +35,7 @@ deps =
|
||||||
django52: Django>=5.2,<6.0
|
django52: Django>=5.2,<6.0
|
||||||
commands =
|
commands =
|
||||||
coverage run -m pytest {posargs}
|
coverage run -m pytest {posargs}
|
||||||
|
coverage report
|
||||||
coverage xml
|
coverage xml
|
||||||
|
|
||||||
[testenv:audit]
|
[testenv:audit]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue