Commit 7c71dd0
committed
test_runner: apply default test-file exclusion via run() API
The CLI path defaults coverageExcludeGlobs to [kDefaultPattern] when
--experimental-test-coverage is set, dropping test files from the
coverage report. The run() API skipped this default, so callers got
test files mixed into their coverage data. Apply the same default
when run() is invoked with coverage: true and no explicit
coverageExcludeGlobs, so both entry points behave consistently.
Update the existing run() coverage tests that depended on the absent
default to opt out via coverageExcludeGlobs: '!test/**'.
Refs: #60023
Signed-off-by: sangwook <rewq5991@gmail.com>1 parent 8b5b331 commit 7c71dd0
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
| 808 | + | |
| 809 | + | |
808 | 810 | | |
809 | 811 | | |
810 | 812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
0 commit comments