diff options
| author | Surya Prakash Singh <surya.singh@nectechnologies.in> | 2016-12-15 18:47:24 +0530 |
|---|---|---|
| committer | Surya Prakash Singh <surya.singh@nectechnologies.in> | 2017-01-11 15:46:36 +0530 |
| commit | 7700c6ca53e1e2f81ac272f0d3261fb519029618 (patch) | |
| tree | b4abc148cf1d5ac1d22eb147494e451ade99ab6e | |
| parent | a27f237ddd646089e1c28918316fb83e34978781 (diff) | |
| download | kolla-7700c6ca53e1e2f81ac272f0d3261fb519029618.tar.gz kolla-7700c6ca53e1e2f81ac272f0d3261fb519029618.zip | |
Cover environment for kolla
Enabled the cover environment for kolla in tox
Closes-bug: #1650269
Change-Id: I732058b07d951227e7011f6f1a3d84fed594cfa7
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | tox.ini | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index f0a575157..2495270b7 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,8 @@ AUTHORS ChangeLog doc/build etc/kolla/kolla-build.conf +.coverage +cover/ # Files generated by Vagrant dev/vagrant/Vagrantfile.custom @@ -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 |
