Commit 882a206
Tamas Vajk
Set --instrumentation_filter for coverage in .bazelrc
Without an explicit --instrumentation_filter, Bazel's default filter
may not match workspace targets, causing ctx.coverage_instrumented()
to return False and producing empty Rust coverage reports.
Add coverage --instrumentation_filter=^// to .bazelrc so that all
workspace targets are instrumented by default. Projects with vendored
dependencies should narrow this, e.g.:
coverage --instrumentation_filter=^//,-^//third_party1 parent 5245458 commit 882a206
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
0 commit comments