Skip to content

Test coverage wrong when importing large library #24261

Open
@MattTheCuber

Description

@MattTheCuber

Type: Bug

  1. Create a simple project that imports MONAI with a test
  2. Open the Testing tab and run tests with coverage
  3. Module-level lines (e.g. imports, class definitions, and function definitions) will show as missed in the coverage report

image

Extension version: 2024.16.0
VS Code version: Code 1.94.0 (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.18.0-348.23.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.23.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.23.1.el8_5.x86_64
Remote OS version: Linux x64 4.18.0-348.23.1.el8_5.x86_64

System Info
Item Value
CPUs AMD Ryzen 7 5825U with Radeon Graphics (16 x 1996)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 38.83GB (21.36GB free)
Process Argv --file-uri file:///c%3A/Users/mvine/Documents/Programming/goliath-fragct.code-workspace
Screen Reader no
VM 0%
Item Value
Remote SSH: 10.10.10.137
OS Linux x64 4.18.0-348.23.1.el8_5.x86_64
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3650)
Memory (System) 125.82GB (89.95GB free)
VM 0%
Item Value
Remote SSH: 10.10.10.137
OS Linux x64 4.18.0-348.23.1.el8_5.x86_64
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3650)
Memory (System) 125.82GB (89.95GB free)
VM 0%
Item Value
Remote SSH: 10.10.10.137
OS Linux x64 4.18.0-348.23.1.el8_5.x86_64
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3650)
Memory (System) 125.82GB (89.95GB free)
VM 0%
Item Value
Remote SSH: 10.10.10.137
OS Linux x64 4.18.0-348.23.1.el8_5.x86_64
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3589)
Memory (System) 125.82GB (89.95GB free)
VM 0%

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions