Cover report omits test files

Coverage report previously included information about
files used by unit tests. Which distorted the statistics
in a considerable fashion.

Keeping the setting in the .coveragerc is a better option.
Also fixes wrong source path in .coveragerc.

Closes-bug: #1922726

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I5c5a473bda9134d72c01eb4aea22452ebfb85fe5
This commit is contained in:
Jiri Podivin 2021-03-16 14:59:47 +01:00
parent 4c295796b0
commit caeb26b1f5
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
[run]
branch = True
source = validations-common
source = validations_common
omit = validations_common/tests/*
[report]
ignore_errors = True

View File

@ -113,7 +113,7 @@ passenv = *
[testenv:cover]
setenv =
PYTHON=coverage run --source validations_common --parallel-mode --branch
PYTHON=coverage run --parallel-mode --branch
HOME={envdir}
commands =
coverage erase