Add support for measuring coverage

Change-Id: I219e14658c025fa13f3e0f8ba9dc6945ce777120
This commit is contained in:
Marc Abramowitz 2014-04-25 10:23:31 -07:00
parent d5f09282ea
commit 8d38dfefd2
3 changed files with 15 additions and 0 deletions

9
.coveragerc Normal file
View File

@ -0,0 +1,9 @@
[run]
branch = True
omit =
.tox*
[report]
exclude_lines =
pragma: no cover
raise NotImplementedError

View File

@ -1,3 +1,4 @@
coverage>=3.6
discover discover
flake8 flake8
mock mock

View File

@ -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