Skip to content

Commit 7985d49

Browse files
committed
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
1 parent 5501ac7 commit 7985d49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[run]
22
branch = True
33
source = openstackclient
4+
omit = openstackclient/tests/*
45

56
[report]
67
ignore_errors = True

0 commit comments

Comments
 (0)