-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Type: Bug
I have a multi-root workspace with multiple Python projects. If I use the global "Run Tests with Coverage" button to run all tests with coverage, I'll get a coverage report for all projects in my workspace as expected.
However, if I then open files via the "Test Coverage" panel to get more detailed info on which lines were not covered, I find that files in some workspace folders do not have line-by-line highlighting.
If I use the "Run Tests with Coverage" on a single workspace folder, files in it will always have per-line coverage highlighting.
I only tested this with Python, so I'm not sure if other languages are affected.
I created a repo with a minimal example to reproduce this issue:
https://github.com/IllyaMoskvin/vscode-coverage-mrw
Note how foo.py is missing coverage highlighting after this global test run:
During the same global test run, bar.py had coverage highlighting:
However, if I run coverage just on the foo workspace folder, foo.py has coverage:
VS Code version: Code 1.103.1 (Universal) (360a4e4fd251bfce169a4ddf857c7d25d1ad40da, 2025-08-12T16:25:40.542Z)
OS version: Darwin arm64 23.6.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M3 Pro (12 x 2400) |
| GPU Status | 2d_canvas: enabled direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: enabled_on trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 3, 3, 3 |
| Memory (System) | 18.00GB (0.10GB free) |
| Process Argv | --crash-reporter-id 3ba95369-69d9-4f3f-bdfb-52a3fdfd6ff3 |
| Screen Reader | no |
| VM | 0% |
Extensions (19)
| Extension | Author (truncated) | Version |
|---|---|---|
| language-hugo-vscode | bud | 1.3.1 |
| workspace-default-settings | dan | 0.0.7 |
| EditorConfig | Edi | 0.17.4 |
| copilot | Git | 1.350.0 |
| copilot-chat | Git | 0.30.1 |
| vscode-github-actions | git | 0.27.2 |
| debugpy | ms- | 2025.10.0 |
| flake8 | ms- | 2025.2.0 |
| isort | ms- | 2025.0.0 |
| mypy-type-checker | ms- | 2025.2.0 |
| python | ms- | 2025.12.0 |
| vscode-pylance | ms- | 2025.7.1 |
| vscode-python-envs | ms- | 1.3.12271016 |
| live-server | ms- | 0.4.15 |
| vscode-just-syntax | nef | 0.8.0 |
| advanced-new-file | pat | 1.2.2 |
| sqlite-viewer | qwt | 0.10.6 |
| even-better-toml | tam | 0.21.2 |
| markdown-all-in-one | yzh | 3.6.3 |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
aj953862:31281341
9d2cg352:31346308
nesew2to5:31336538
agentclaude:31335814
nes-set-on:31340697
6abeh943:31336334
0927b901:31350571
4gdec884:31348710
custommodel2t:31371781
45650338:31358607
0cj2b977:31352657
justeven_python_cf:31371805
0574c672:31362109
gemagent1cf:31368470
cloudbuttont:31368504
retryenabled:31370050