Test Icons Not Updating when using pytest
See original GitHub issueIssue Type: Bug
Hi, While using the built-in Python test tab in VSCode, occasionally the test status icons (green checkmark or red X) get out of sync with the actual test results. As an example, I have tests that were once failing, and are now passing, but the icons still are red X’s; when running tests, the icons dont update to be the spinning arrows, and after the tests are done, they are what they were before. At the bottom of the screen, the test status is correct, and inside the test file the test status is correct, its just the test explorer tab.
Note that closing VSCode entirely and re-opening it fixes the problem. I can’t reliably reproduce, it just happens sometimes on some projects
Extension version: 2021.1.502429796 VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z) OS version: Windows_NT x64 10.0.18363
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i5-8365U CPU @ 1.60GHz (8 x 1896) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: enabled_on protected_video_decode: enabled rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.75GB (6.86GB free) |
Process Argv | –crash-reporter-id 72142afe-7e98-4075-91ad-09c713b0d234 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30211401
wsl2promptcf:30224613
pythonvsdeb440:30248342
unusedpromptcf:30224611
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30248341
pythonvspyt600cf:30247032
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:13 (1 by maintainers)
Top GitHub Comments
Also experiencing the issue, icons don’t update from ? when running using pytest.
Test running
Showing as passed in test output:
Environment Details
Running attached to a container via wsl2 (ubuntu-20.04)
Extension version: v2021.4.765268190 VS Code version: Code 1.52.2 OS version: Windows_NT x64 10.0.19042
Using Remote settings:
This is fixed by https://github.com/microsoft/vscode-python/pull/16769 😊