Skip to content

unittest in subdir, error "Unknown node id: <tests directory>" #17280

@rob-miller

Description

@rob-miller

Issue Type: Bug

With the update to v2021.9.1191016588 I am no longer seeing unittests in a subdirectory in the testing sidebar. At the end of Output > Python the error

Error 2021-09-04 12:36:36: Unknown node id: /Users/rob/sync/proj/pysample/Tests

is shown, the last field being the tests subdirectory. From working with the issue in my main project I can see that files in Tests are processed as warnings are generated for test_ files that need supporting software installed.

I have ceated a small sample project that demonstrates the issue in my hands.

Extension version: 2021.9.1191016588
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:54:53.442Z)
OS version: Darwin x64 19.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 64.00GB (24.27GB free)
Process Argv --crash-reporter-id 3979b9b2-ec5b-47d5-a095-bbee55872257 --crash-reporter-id 3979b9b2-ec5b-47d5-a095-bbee55872257
Screen Reader no
VM 18%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonf5test824:30361777
javagetstartedc:30351792
vsdyn420:30356812
pydsgsc2:30361791
vscus224cf:30358040
vssid140cf:30362081

Metadata

Metadata

Assignees

Labels

area-testingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions