-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from xenserver/add-coveragerc-mark-not-covered…
…-branches CP-41819: Py3: Collect, check and report code coverage from Python3 unit test runs
- Loading branch information
Showing
9 changed files
with
100 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[run] | ||
source = | ||
xen-bugtool | ||
tests/ | ||
|
||
[report] | ||
# Regular expressions for lines to exclude from consideration | ||
exclude_lines = | ||
# Don't complain if tests don't hit catch-all exception handlers: | ||
except: | ||
except Exception | ||
except IOError | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Enable these selectively if you want to allow these raises without cover: | ||
# (If you want no complaint when tests don't hit raising these Assertions) | ||
# raise AssertionError | ||
# raise NotImplementedError | ||
# raise RuntimeError | ||
# raise ValueError | ||
# \<assert\>.* | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: | ||
if TYPE_CHECKING: | ||
# skip any line with a `pass` (such as may be used for @abstractmethod or @suffixed_method) | ||
pass | ||
|
||
precision = 1 | ||
include = | ||
xen-bugtool | ||
tests/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2390ca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/marketplace/actions/pytest-coverage-comment