Coverage calculation improvements

- add .coveragerc to configure coverage calculations and omissions;
- add python 2.x specific test requirements to coverage tox env;
- update .gitignore.

Change-Id: Idc35e4f18ec297506576f09e468ab34e8704c0b1
This commit is contained in:
Ivan A. Melnikov 2013-11-22 11:25:03 +04:00
parent db15db8186
commit 63f89bc916
3 changed files with 13 additions and 0 deletions

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[run]
branch = True
source = taskflow
omit = taskflow/tests/*,taskflow/openstack/*,taskflow/test.py
[report]
ignore-errors = True

2
.gitignore vendored
View File

@ -26,6 +26,8 @@ pip-log.txt
.tox
nosetests.xml
.venv
cover
.testrepository
# Translations
*.mo

View File

@ -38,6 +38,9 @@ deps = -r{toxinidir}/requirements.txt
commands = pylint
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/test-2.x-requirements.txt
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]