You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in #17414, if I have a directory named "py" somewhere in the path of pytest tests, they will report "Test result not found". Renaming the folder fixes the issue. #17414 is closed and I cannot comment there, so I am raising a new issue.
Steps to reproduce:
Create a python project with a pytest-based test
Have a folder named "py" somewhere in the path leading to the tests. This can be a higher folder (in my case, it is the project folder itself), does not have to be the folder directly containing the tests.
Discover and run the tests through VS Code UI. The tests will run and pass correctly(!) - visible under "Output -> Python Test Log". However, all tests are marked as red in the UI and in the "Test Results" pane, we get
Total number of tests expected to run: 1
Total number of tests run: 0
Total number of tests passed: 0
Total number of tests failed: 0
Total number of tests failed with errors: 0
Total number of tests skipped: 0
Total number of tests with no result data: 1
Finished running tests!
Rename the "py" folder to anything else (including "python"!) - and everything works.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Extension version: 2024.22.1
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 5.15.0-127-generic
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.10.12
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
Value of the python.languageServer setting: Default
orbelico
changed the title
Regression: Folders named 'py' result in "Test result not found" #17414
Regression of #17414: Folders named 'py' result in "Test result not found"
Dec 30, 2024
Type: Bug
Behaviour
As described in #17414, if I have a directory named "py" somewhere in the path of pytest tests, they will report "Test result not found". Renaming the folder fixes the issue. #17414 is closed and I cannot comment there, so I am raising a new issue.
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.22.1
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 5.15.0-127-generic
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
The text was updated successfully, but these errors were encountered: