From 7985d496892635b70b71be552c52946824d73e9b Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Wed, 7 Sep 2022 09:05:58 +0200 Subject: 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 Change-Id: Ifedaa1c8bfab23d92958e58c69c03e778454a408 --- .coveragerc | 1 + 1 file changed, 1 insertion(+) diff --git a/.coveragerc b/.coveragerc index 3685187b..8dc03265 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,7 @@ [run] branch = True source = openstackclient +omit = openstackclient/tests/* [report] ignore_errors = True -- cgit v1.2.1