Skip to content

Commit

Permalink
Excluding test code from coverage reports
Browse files Browse the repository at this point in the history
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 <[email protected]>
Change-Id: Ifedaa1c8bfab23d92958e58c69c03e778454a408
  • Loading branch information
jpodivin committed Jan 4, 2023
1 parent 5501ac7 commit 7985d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[run]
branch = True
source = openstackclient
omit = openstackclient/tests/*

[report]
ignore_errors = True

0 comments on commit 7985d49

Please sign in to comment.