-
Notifications
You must be signed in to change notification settings - Fork 9
/
.coveragerc
48 lines (42 loc) · 1.3 KB
/
.coveragerc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[run]
command_line = -m pytest --junitxml=.git/pytest.xml --cov-report=term-missing
# Default data file for "coverage run": Store coverage data in .git/.coverage
data_file = .git/.coverage
relative_files = True
omit =
tests/integration/__init__.py
tests/mocks/xen/__init__.py
tests/mocks/xen/lowlevel/__init__.py
tests/mocks/xen/lowlevel/xc/__init__.py
tests/unit/__init__.py
[coverage:html]
directory = .git/coverage.html
[coverage:xml]
output = .git/coverage.xml
[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/*