Adds .coveragerc and modify tox.ini for coverage

Adds some default settings to coverage tool via .coveragerc config file
Adds erase and report commands to cover env in tox.ini
This commit is contained in:
Petr Blaho 2013-07-09 13:49:00 +02:00
parent 306f6aa52d
commit 245ee2b7db
2 changed files with 10 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = tuskarclient
omit = tuskarclient/tests/*
[report]
ignore-errors = True

View File

@ -19,7 +19,9 @@ commands = flake8
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --omit='tuskarclient/tests/*' --testr-args='{posargs}'
commands = coverage erase
python setup.py testr --coverage --omit='tuskarclient/tests/*' --testr-args='{posargs}'
coverage report -m
[tox:jenkins]
downloadcache = ~/cache/pip