-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy path.tarpaulin.toml
More file actions
172 lines (134 loc) · 2.78 KB
/
Copy path.tarpaulin.toml
File metadata and controls
172 lines (134 loc) · 2.78 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Tarpaulin configuration for test coverage analysis
[output]
# Output formats: Html, Json, Lcov, Xml, Cobertura
formats = ["Html", "Json", "Lcov"]
# Output directory
directory = "target/tarpaulin"
# Generate reports even if no tests were run
always_report = true
[report]
# Show line coverage
line_coverage = true
# Show branch coverage
branch_coverage = true
# Show function coverage
function_coverage = true
# Show condition coverage
condition_coverage = true
# Show region coverage
region_coverage = true
[engine]
# Use LLVM for coverage
hardlink = true
# Count unreachable code
unreachable = false
# Count dead code
dead_code = false
[exclude]
# Exclude test files from coverage
exclude_files = [
"tests/**",
"**/tests/**",
"**/*_tests.rs",
"**/test_*.rs",
"**/benches/**",
"**/examples/**",
"**/target/**",
"**/build.rs",
]
# Exclude certain patterns
exclude_patterns = [
"test_",
"_test",
"tests?",
"bench_",
"_bench",
"benches?",
"debug_assert",
"cfg\\(test\\)",
"cfg\\(feature = \"test\"\\)",
]
[filter]
# Only include specific packages
include_packages = [
"assessment",
"community",
"certificate",
"analytics",
"shared",
"e2e-tests",
]
# Exclude certain packages
exclude_packages = [
"build",
"proc-macro",
]
[llvm]
# Path to llvm-cov
llvm_cov_path = "llvm-cov"
# Path to llvm-profdata
llvm_profdata_path = "llvm-profdata"
# Use cargo metadata for workspace
workspace = true
[features]
# Run tests with all features
all_features = true
# Default features
default_features = true
# Additional features to include
features = [
"test-utils",
"mock",
]
[run]
# Number of test threads (0 = number of CPUs)
threads = 0
# Test timeout in seconds
timeout = 300
# Ignore test failures
ignore_failures = false
# Run tests in release mode
release = false
# Count code that is not executed
no_run = false
# Count dead code
dead_code = false
# Skip clean
skip_clean = false
# Follow executable dependencies
follow_exec = false
# Include tests in coverage
include_tests = true
# Include benches in coverage
include_benches = false
# Count unreachable code
unreachable = false
[env]
# Environment variables for tests
# Example: "TEST_VAR=value"
[posthook]
# Command to run after coverage analysis
# Example: "cargo coverage-report --format markdown"
[fail_under]
# Minimum coverage percentage to pass (80% as required)
line = 80.0
branch = 75.0
function = 85.0
condition = 70.0
# Fail if coverage is below threshold
fail_under = true
[files]
# Files to include in coverage
include = [
"src/**/*.rs",
"contracts/*/src/**/*.rs",
"e2e-tests/src/**/*.rs",
]
# Files to exclude from coverage
exclude = [
"src/main.rs",
"src/bin/**",
"**/mod.rs",
"**/lib.rs",
"**/main.rs",
]