Excluding test code from coverage reports

Coverage report should not include statiststics on test modules
which is not only unnecessary, but also pollutes the coverage
statistics and pollutes the final report.

Requesting the path to tests to be omitted in .coveragerc resolves the issue.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: Ifedaa1c8bfab23d92958e58c69c03e778454a408
This commit is contained in:
Jiri Podivin 2022-09-07 09:05:58 +02:00
parent 5501ac7d1d
commit 7985d49689
1 changed files with 1 additions and 0 deletions

View File

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