forked from MettaChain/PropChain-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.coveragerc
More file actions
45 lines (36 loc) · 776 Bytes
/
Copy path.coveragerc
File metadata and controls
45 lines (36 loc) · 776 Bytes
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
# Coverage Configuration for PropChain Contracts
[run]
# Source files to include
source = ["contracts"]
# Source files to exclude
omit = [
"*/target/*",
"*/tests/*",
"*/test_utils.rs",
"*/e2e_tests.rs",
]
# Branch coverage
branch = true
# Show missing lines
show_missing = true
# Precision for coverage percentage
precision = 2
[report]
# Exclude lines from coverage
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if False:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
# Minimum coverage percentage
fail_under = 95
[html]
directory = "coverage/html"
[xml]
output = "coverage/coverage.xml"