Coverage considers other all main source folders, omits tests

This should have been in the initial patch, arguably.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I765218b61f761ce1df387abea33e35f2c96a1ec6
This commit is contained in:
Jiri Podivin 2021-03-23 18:19:49 +01:00
parent 79955d1742
commit a7b7152071
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,13 @@
[run]
branch = True
source = tripleo-validations
source =
tripleo_validations
library
lookup_plugins
omit = tripleo-validations/openstack/*
[report]
ignore_errors = True
omit =
tripleo_validations/tests/*
tests/*

View File

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