Browse Source

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
changes/71/782571/3
Jiri Podivin 6 months ago
parent
commit
a7b7152071
  1. 8
      .coveragerc
  2. 2
      tox.ini

8
.coveragerc

@ -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/*

2
tox.ini

@ -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

Loading…
Cancel
Save