-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coveragerc
More file actions
60 lines (46 loc) · 1.21 KB
/
Copy path.coveragerc
File metadata and controls
60 lines (46 loc) · 1.21 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
# Coverage.py configuration file
# https://coverage.readthedocs.io/
[run]
# Measure branch coverage (if/else branches)
branch = True
# Source packages to measure
source = ddstartup
# Omit these files/patterns from coverage
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
*/__init__.py
setup.py
*/conftest.py
[report]
# Show lines that weren't executed
show_missing = True
# Target coverage percentage
fail_under = 0
# Precision for coverage percentage
precision = 2
# Exclude lines from coverage (these patterns won't count as missing)
exclude_lines =
# Standard pragma
pragma: no cover
# Don't complain about missing debug-only code
def __repr__
def __str__
# Don't complain if tests don't hit defensive assertion code
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run
if __name__ == .__main__.:
if TYPE_CHECKING:
# Don't complain about abstract methods
@(abc\.)?abstractmethod
[html]
# Directory for HTML output
directory = tests/htmlcov
# Title for HTML report
title = DD Startup Coverage Report
[xml]
# Filename for XML output (useful for CI/CD)
output = coverage.xml