-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathtarpaulin.toml
More file actions
145 lines (138 loc) · 2.74 KB
/
tarpaulin.toml
File metadata and controls
145 lines (138 loc) · 2.74 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
[config]
# Run tests with all features
all-features = true
# Branch coverage threshold
branch-coverage = true
# Count hits for coverage calculation
count = true
# Generate coverage for doctests
doc-tests = true
# Coverage engine to use
engine = "Llvm"
# Exclude files and directories from coverage
exclude = [
# Test files
"tests/*",
"*/tests/*",
# Example files
"examples/*",
"*/examples/*",
# Benchmark files
"benchmarks/*",
"*/benchmarks/*",
# Generated files
"target/*",
"*/target/*",
# Python bindings (covered separately)
"python/*",
# Documentation
"docs/*",
# Configuration files
"*.toml",
"*.yaml",
"*.yml",
"*.json",
"Makefile",
"*.sh",
"*.md"
]
# Exclude specific functions from coverage
exclude-functions = [
"main",
"test_*",
"bench_*",
"*::fmt",
"*::new",
"*::default",
"*::drop",
"*::clone",
"*::debug",
"*::display"
]
# Exclude specific lines from coverage
exclude-lines = [
# Debug/unreachable code
"unreachable!",
"unimplemented!",
"todo!",
"panic!",
# Test-only code
"#\\[cfg\\(test\\)\\]",
"mod tests",
"fn test_",
"async fn test_",
# Derive macros
"#\\[derive\\(",
# Skip certain patterns
"skip_on_error",
"TRACE",
"DEBUG"
]
# Follow symbolic links
follow-links = true
# Forward arguments to cargo test
forward-signals = true
# Include test results in coverage
include-tests = false
# Number of parallel jobs
jobs = 4
# Line coverage threshold
line-coverage = true
# Output directory for coverage reports
out = ["Html", "Json", "Lcov", "Xml"]
output-dir = "target/coverage"
# Release mode for better performance
release = true
# Run ignored tests
run-ignored = false
# Timeout for tests in seconds
timeout = "300s"
# Verbose output
verbose = true
# Include all workspace members
workspace = true
# Environment variables for coverage runs
[env]
RUST_BACKTRACE = "1"
RUST_LOG = "warn"
# Additional cargo features to enable during coverage
[features]
coverage = ["python"]
default = []
# Profile-specific configurations
[profile.dev]
# Settings for development builds
debug = true
opt-level = 0
[profile.release]
codegen-units = 1
# Settings for release builds (used for coverage)
debug = true
lto = false
opt-level = 2
[profile.test]
# Settings for test builds
debug = true
opt-level = 1
# Custom report generation
[report]
# HTML report settings
html = true
html-dir = "target/coverage/html"
# JSON report settings
json = true
json-file = "target/coverage/coverage.json"
# LCOV report settings
lcov = true
lcov-file = "target/coverage/lcov.info"
# XML report settings
xml = true
xml-file = "target/coverage/coverage.xml"
# Coverage thresholds
[thresholds]
# Branch coverage threshold
branch = 70.0
# Function coverage threshold
function = 85.0
# Line coverage threshold
line = 80.0