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:
parent
4c295796b0
commit
caeb26b1f5
@ -1,6 +1,7 @@
|
||||
[run]
|
||||
branch = True
|
||||
source = validations-common
|
||||
source = validations_common
|
||||
omit = validations_common/tests/*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
|
2
tox.ini
2
tox.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user