From 208383fed71c372269821419f147ffdadce2c111 Mon Sep 17 00:00:00 2001 From: Cristian Matiut Date: Fri, 26 Apr 2024 15:16:16 +0300 Subject: [PATCH] Omit unit tests directory from all coverage runs --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 509ea451..e4c89e17 100644 --- a/tox.ini +++ b/tox.ini @@ -21,13 +21,17 @@ setenv = commands = stestr run --no-subunit-trace {posargs} coverage combine - coverage report --fail-under=75 --skip-covered --omit={toxinidir}/coriolis/tests/* + coverage report --fail-under=75 --skip-covered coverage html -d cover coverage xml -o cover/coverage.xml [testenv:venv] commands = {posargs} +[coverage:run] +source = coriolis +omit = coriolis/tests/* + [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126 # E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301