Move coverage config to setup.cfg and generate xml report
This commit is contained in:
parent
8543f3ea1d
commit
ea3dd622b6
23
.coveragerc
23
.coveragerc
@ -1,23 +0,0 @@
|
|||||||
# .coveragerc to control coverage.py
|
|
||||||
[run]
|
|
||||||
branch = True
|
|
||||||
source = radicale
|
|
||||||
|
|
||||||
[report]
|
|
||||||
# Regexes for lines to exclude from consideration
|
|
||||||
exclude_lines =
|
|
||||||
# Have to re-enable the standard pragma
|
|
||||||
pragma: no cover
|
|
||||||
|
|
||||||
# Don't complain if tests don't hit defensive assertion code:
|
|
||||||
raise AssertionError
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
# Don't complain if non-runnable code isn't run:
|
|
||||||
if __name__ == .__main__.:
|
|
||||||
|
|
||||||
omit =
|
|
||||||
tests/*
|
|
||||||
*/tests/*
|
|
||||||
|
|
||||||
ignore_errors = True
|
|
25
setup.cfg
25
setup.cfg
@ -5,9 +5,32 @@ test = pytest
|
|||||||
python-tag = py3
|
python-tag = py3
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
addopts = --flake8 --isort --cov -r s
|
addopts = --flake8 --isort --cov --cov-report=term --cov-report=xml -r s
|
||||||
norecursedirs = dist .cache .git build Radicale.egg-info .eggs venv
|
norecursedirs = dist .cache .git build Radicale.egg-info .eggs venv
|
||||||
|
|
||||||
[isort]
|
[isort]
|
||||||
known_standard_library=posixpath
|
known_standard_library=posixpath
|
||||||
known_third_party=gunicorn,passlib,pkg_resources,pytest,pytest_cov,vobject
|
known_third_party=gunicorn,passlib,pkg_resources,pytest,pytest_cov,vobject
|
||||||
|
|
||||||
|
[coverage:run]
|
||||||
|
branch = True
|
||||||
|
source = radicale
|
||||||
|
|
||||||
|
[coverage:report]
|
||||||
|
# Regexes for lines to exclude from consideration
|
||||||
|
exclude_lines =
|
||||||
|
# Have to re-enable the standard pragma
|
||||||
|
pragma: no cover
|
||||||
|
|
||||||
|
# Don't complain if tests don't hit defensive assertion code:
|
||||||
|
raise AssertionError
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
|
# Don't complain if non-runnable code isn't run:
|
||||||
|
if __name__ == .__main__.:
|
||||||
|
|
||||||
|
omit =
|
||||||
|
tests/*
|
||||||
|
*/tests/*
|
||||||
|
|
||||||
|
ignore_errors = True
|
||||||
|
Loading…
Reference in New Issue
Block a user