Merge "Cover environment for kolla-ansible"

This commit is contained in:
Jenkins 2017-01-16 14:34:36 +00:00 committed by Gerrit Code Review
commit 864d17f6cb
3 changed files with 11 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

@ -4,6 +4,7 @@
bandit>=1.1.0 # Apache-2.0
bashate>=0.2 # Apache-2.0
beautifulsoup4 # MIT
coverage>=4.0 # Apache-2.0
doc8 # Apache-2.0
extras # MIT
graphviz!=0.5.0,>=0.4.0 # MIT License

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