From 9004321aaaa3bcd2262a841c7dc6683ee0a98f94 Mon Sep 17 00:00:00 2001 From: Surya Prakash Singh Date: Tue, 17 Jan 2017 12:50:24 +0530 Subject: [PATCH] Code coverage improvement for kolla This patch add the coverage tool package to test-requirements.txt which was missing, while kolla support coverage. In addtion to this tox.ini coverage command is modified to reflect the coverage report in standard output whenever "tox -e cover" command run for better representation of coverage report. Change-Id: I7f77c8d5320a7d180586ce1e8773a4f294846331 Partially-Implements: blueprint coverage-increment-for-kolla --- test-requirements.txt | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index a4cd7ccb50..9cf43439a3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 ddt>=1.0.1 # MIT doc8 # Apache-2.0 extras # MIT diff --git a/tox.ini b/tox.ini index 549c4894c8..3c4d2aa11b 100644 --- a/tox.ini +++ b/tox.ini @@ -28,6 +28,7 @@ setenv = VIRTUAL_ENV={envdir} NOSE_COVER_HTML=1 NOSE_COVER_HTML_DIR={toxinidir}/cover commands = python setup.py testr --coverage --testr-args='{posargs}' + coverage report --show-missing [testenv:pep8] commands =