From e4593665d1d7fed9e00d91971ef7fa198dc74b0a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 7 Feb 2024 12:20:49 +0900 Subject: [PATCH] Display coverage report ... for easy reference. Also make sure old data is purged. This also fixes the missing coverage command, and the wrong option in .coveragerc . Change-Id: I7d4dcaea2e42d564c8f4264aecd15588085d63e3 --- .coveragerc | 2 +- tox.ini | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index a794af4..de79a60 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,4 +4,4 @@ source = oslo_privsep omit = oslo_privsep/tests/* [report] -ignore-errors = True +ignore_errors = True diff --git a/tox.ini b/tox.ini index 6cd9266..a1cd294 100644 --- a/tox.ini +++ b/tox.ini @@ -33,13 +33,17 @@ commands = sphinx-build -W --keep-going -b html doc/source doc/build/html [testenv:cover] +deps = {[testenv]deps} + coverage setenv = - PYTHON=coverage run --source $project --parallel-mode + PYTHON=coverage run --source oslo_privsep --parallel-mode commands = + coverage erase stestr run {posargs} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml + coverage report --show-missing [flake8] # E123, E125 skipped as they are invalid PEP-8.