-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test discovery in pythonTestAdapter experiment breaks if folder names repeat #21423
Comments
Hello! Thank you for taking the time to write a detailed issue and also for using our new experiment |
EDIT: Never mind, I though your branch was merged. I'll try again when it does. @eleanorjboyd Just tried again with the new version and tests are not visible on UI. Python log
When I try to run tests in this state, it gets stuck in "Running tests..." indefinitely. |
fixes #21423 fixes so the dictionary that stores the folders created so far in the plugin architecture is using the folder path as the key instead of folder name so the key is always unique.
Hi sorry- the change did not get merged till this morning so it will not be out until tomorrow (friday). Thanks! |
I can confirm this is working now. Thanks! |
Great!! Thank you so much for checking! |
Type: Bug
Behaviour
Expected vs. Actual
If there is a repeating name in a path, like
a/b/a/test_hello.py
, test discovery will fail.pytest (and old test adapter) can handle this, so I expect it to work.
Steps to reproduce:
pythonTestAdapter
experiment.a/b/a
.test_hello.py
ina/b/a
and write a test function in it. E.g.:python -m venv .venv source .venv/bin/activate pip install pytest
a/b/a
is changed to something likea/b/c
, test discovery works.Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.10.0
VS Code version: Code 1.79.0 (b380da4ef1ee00e224a15c1d4d9793e27c2b6302, 2023-06-07T14:31:03.317Z)
OS version: Darwin arm64 22.5.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
The text was updated successfully, but these errors were encountered: