summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Podivin <jpodivin@redhat.com>2022-09-07 09:05:58 +0200
committerJiri Podivin <jpodivin@redhat.com>2023-01-04 11:00:47 +0000
commit7985d496892635b70b71be552c52946824d73e9b (patch)
treee75ff18dbbcb2835dca490de5781a9dae14533f4
parent5501ac7d1dc9bef97840fea98c55c86bcb10792f (diff)
downloadpython-openstackclient-7985d496892635b70b71be552c52946824d73e9b.tar.gz
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
-rw-r--r--.coveragerc1
1 files changed, 1 insertions, 0 deletions
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