From c7b989d3185ce0291e7e07334ed08ccfd4bd2e1b Mon Sep 17 00:00:00 2001 From: Yushiro FURUKAWA Date: Fri, 30 Sep 2016 22:42:20 +0900 Subject: [PATCH] Fix coverage option and execution --coverage-package-name option was no longer supported by 'testr'[1]. This commit replaces from 'testr' to 'test' as coverage option. [1] https://review.openstack.org/#/c/217847/ Change-Id: Iedb3ae3171733e129de6180094022df2c8b85ea3 --- .gitignore | 4 ++++ tox.ini | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c960041f..4cb15495 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,7 @@ etc/muranoagent/muranoagent.conf.sample # Files created by releasenotes build releasenotes/build + +# Coverage +.coverage +cover/ diff --git a/tox.ini b/tox.ini index be0b2d71..c5aea180 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,9 @@ commands = commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py test --coverage \ + --coverage-package-name=muranoagent --testr-args='{posargs}' + coverage report --omit '*/tests/*' [testenv:docs] commands = python setup.py build_sphinx