Commit 70f2f22
committed
[None][test] CBTS coverage HTML: show per-line test contexts
Enable coverage.py's show_contexts in the rendered HTML report so each
covered line carries a clickable list of the pytest nodeids that
exercised it. The data was already being captured -- cbts_plugin and
sitecustomize call cov.switch_context(nodeid) per test on both the
pytest main and MPI worker sides -- but the post-job HTML rendering in
L0_MergeRequest's "Test Coverage" stage was not asking for it.
Three .coveragerc-touching changes:
* jenkins/L0_MergeRequest.groovy "Test Coverage" stage: rewrite the
combine-time rcfile as a heredoc, add [html] show_contexts = True,
and pass --show-contexts on the coverage html invocation. No-op for
legacy non-CBTS stages whose .coverage carries no context info.
* jenkins/L0_Test.groovy isCbtsStage(...) branch and
jenkins/scripts/cbts/coverage_utils/coveragerc.template: same
[html] block so a manually-rendered HTML report uses the per-stage
rcfile.
No behavior change to test execution. Affects only the rendering step
that runs after combine on the Jenkins controller.
Signed-off-by: Ivy Zhang <25222398+crazydemo@users.noreply.github.com>1 parent 9deb14c commit 70f2f22
3 files changed
Lines changed: 36 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1179 | 1193 | | |
1180 | 1194 | | |
1181 | 1195 | | |
1182 | 1196 | | |
1183 | 1197 | | |
1184 | 1198 | | |
1185 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1186 | 1204 | | |
1187 | 1205 | | |
1188 | 1206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1147 | 1154 | | |
1148 | 1155 | | |
1149 | 1156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments