configure coverage
This commit is contained in:
parent
e55d188b27
commit
39815b3833
23
.coveragerc
Normal file
23
.coveragerc
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# .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
|
@ -5,5 +5,5 @@ test = pytest
|
|||||||
python-tag = py3
|
python-tag = py3
|
||||||
|
|
||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
addopts = --flake8 --isort --cov radicale -r s
|
addopts = --flake8 --isort --cov -r s
|
||||||
norecursedirs = dist .cache .git build Radicale.egg-info .eggs venv
|
norecursedirs = dist .cache .git build Radicale.egg-info .eggs venv
|
||||||
|
Loading…
Reference in New Issue
Block a user