From 9640b73cc45e8e6dd8ea228abfb5e7cf3d9ed72a Mon Sep 17 00:00:00 2001 From: "Walter A. Boring IV" Date: Tue, 22 Mar 2016 16:24:36 -0700 Subject: [PATCH] Fix coverage generation This patch makes a few small changes that will get tox -ecover working again. Change-Id: If67b0ad11226ff0f5774ace968277cd400f78655 --- .coveragerc | 4 ++-- .gitignore | 1 + tox.ini | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.coveragerc b/.coveragerc index 80f249032..6478b15d3 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True -source = brick -omit = brick/tests/*,brick/openstack/* +source = os_brick +omit = os_brick/tests/* [report] ignore_errors = True diff --git a/.gitignore b/.gitignore index cd2da4029..d32eeaa96 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,7 @@ nosetests.xml .venv tools/lintstack.head.py tools/pylint_exceptions +cover # Translations *.mo diff --git a/tox.ini b/tox.ini index a4db23f7c..d907497f6 100644 --- a/tox.ini +++ b/tox.ini @@ -33,7 +33,10 @@ commands = bash tools/lintstack.sh commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +# To see the report of missing coverage add to commands +# coverage report --show-missing +commands = + python setup.py test --coverage --coverage-package-name=os_brick --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx