Cover environment for kolla-ansible
Enabled the cover environment for kolla-ansible in tox Change-Id: Ic9f0dbc14ff9f4ef3d82bd06eb58fc145cb121d9 Closes-bug: #1655948
This commit is contained in:
parent
e6b235e1c7
commit
7b36b042dd
2
.gitignore
vendored
2
.gitignore
vendored
@ -29,6 +29,8 @@ AUTHORS
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
doc/build
|
doc/build
|
||||||
etc/kolla/kolla-build.conf
|
etc/kolla/kolla-build.conf
|
||||||
|
.coverage
|
||||||
|
cover/
|
||||||
|
|
||||||
# Files generated by Vagrant
|
# Files generated by Vagrant
|
||||||
dev/vagrant/Vagrantfile.custom
|
dev/vagrant/Vagrantfile.custom
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
bandit>=1.1.0 # Apache-2.0
|
bandit>=1.1.0 # Apache-2.0
|
||||||
bashate>=0.2 # Apache-2.0
|
bashate>=0.2 # Apache-2.0
|
||||||
beautifulsoup4 # MIT
|
beautifulsoup4 # MIT
|
||||||
|
coverage>=4.0 # Apache-2.0
|
||||||
doc8 # Apache-2.0
|
doc8 # Apache-2.0
|
||||||
extras # MIT
|
extras # MIT
|
||||||
graphviz!=0.5.0,>=0.4.0 # MIT License
|
graphviz!=0.5.0,>=0.4.0 # MIT License
|
||||||
|
8
tox.ini
8
tox.ini
@ -21,6 +21,14 @@ commands =
|
|||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
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]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/run-bashate.sh
|
{toxinidir}/tools/run-bashate.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user