Commit be1b0e8
Tamas Vajk
Add RUST_COVERAGE_IGNORE_REGEX for configurable coverage filtering
The llvm-cov export step hardcodes two ignore patterns (external/,
/tmp/). Projects often need additional filters for third-party C
code, generated files, or stdlib sources, but editing the coverage
script is not practical.
Add support for the RUST_COVERAGE_IGNORE_REGEX environment variable:
a comma-separated list of additional -ignore-filename-regex patterns
passed to llvm-cov. Users can set this via --test_env in .bazelrc:
coverage --test_env=RUST_COVERAGE_IGNORE_REGEX=.*third_party/.*,^bazel-out/1 parent f31db8b commit be1b0e8
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
| |||
0 commit comments