From a52130de797b71a202d29bb5dc577f0ff0d121e9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 7 Feb 2024 12:21:49 +0900 Subject: [PATCH] Display coverage report ... for easy reference. Also make sure old data is purged. Also adds .coveragerc which is present in the other repos. Change-Id: Ifee20fc38e9c8bb04c20ff4e690e652b9256d46f --- .coveragerc | 7 +++++++ tox.ini | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..ebf9c28 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +[run] +branch = True +source = oslo_rootwrap +omit = oslo_rootwrap/tests/* + +[report] +ignore_errors = True diff --git a/tox.ini b/tox.ini index 5b2a363..c6a9ca1 100644 --- a/tox.ini +++ b/tox.ini @@ -27,12 +27,14 @@ commands = deps = {[testenv]deps} coverage setenv = - PYTHON=coverage run --source $project --parallel-mode + PYTHON=coverage run --source oslo_rootwrap --parallel-mode commands = + coverage erase stestr run {posargs} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml + coverage report --show-missing [testenv:venv] commands = {posargs}