From 4236c93750a0769af79591fb683e601836271533 Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Fri, 11 Mar 2016 09:18:38 +0000 Subject: [PATCH] Fix coverage configuration and execution A configuration error prevents the successful creation of code coverage. This patch corrects the .coveragerc omit setup and the tox package name generation. Closes-Bug: 1489164 Change-Id: I172708fe9048ed6208eb404974a5fa2e42bb810a --- .coveragerc | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 690b79b5b..f4ab5c6ff 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True source = openstack -omit = openstack/tests/*,openstack/openstack/* +omit = openstack/tests/* [report] ignore_errors = True diff --git a/tox.ini b/tox.ini index 775570797..0ad0ddb5e 100644 --- a/tox.ini +++ b/tox.ini @@ -38,7 +38,7 @@ commands = {posargs} ; If this fails for you, you may be running an old version of tox. ; Run 'pip install tox' to install a newer version of tox. [testenv:cover] -commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}' +commands = python setup.py test --coverage --coverage-package-name=openstack --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx