Cover environment for kolla

Enabled the cover environment for kolla in tox
Closes-bug: #1650269

Change-Id: I732058b07d951227e7011f6f1a3d84fed594cfa7
This commit is contained in:
Surya Prakash Singh 2016-12-15 18:47:24 +05:30
parent a27f237ddd
commit 7700c6ca53
2 changed files with 10 additions and 0 deletions

2
.gitignore vendored
View File

@ -29,6 +29,8 @@ AUTHORS
ChangeLog
doc/build
etc/kolla/kolla-build.conf
.coverage
cover/
# Files generated by Vagrant
dev/vagrant/Vagrantfile.custom

View File

@ -21,6 +21,14 @@ commands =
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_BRANCHES=1
NOSE_COVER_HTML=1
NOSE_COVER_HTML_DIR={toxinidir}/cover
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:pep8]
commands =
{toxinidir}/tools/run-bashate.sh