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:
parent
db15db8186
commit
63f89bc916
8
.coveragerc
Normal file
8
.coveragerc
Normal 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
2
.gitignore
vendored
@ -26,6 +26,8 @@ pip-log.txt
|
|||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
.venv
|
.venv
|
||||||
|
cover
|
||||||
|
.testrepository
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
3
tox.ini
3
tox.ini
@ -38,6 +38,9 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
commands = pylint
|
commands = pylint
|
||||||
|
|
||||||
[testenv:cover]
|
[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}'
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
|
Loading…
Reference in New Issue
Block a user