Add support for measuring coverage
Change-Id: I219e14658c025fa13f3e0f8ba9dc6945ce777120
This commit is contained in:
parent
d5f09282ea
commit
8d38dfefd2
9
.coveragerc
Normal file
9
.coveragerc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
omit =
|
||||||
|
.tox*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
pragma: no cover
|
||||||
|
raise NotImplementedError
|
@ -1,3 +1,4 @@
|
|||||||
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
flake8
|
flake8
|
||||||
mock
|
mock
|
||||||
|
5
tox.ini
5
tox.ini
@ -10,6 +10,11 @@ install_command = pip install {opts} {packages}
|
|||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = python -m discover
|
commands = python -m discover
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
commands =
|
||||||
|
coverage run -m discover
|
||||||
|
coverage report --show-missing
|
||||||
|
|
||||||
[tox:jenkins]
|
[tox:jenkins]
|
||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user