-
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
VSC will not recognize tests #24816
Comments
@elutins when you run pytest from the terminal is it able to find the tests? |
Yep - |
@elutins From the configuration you shared |
Additionally, I am developing/running these tests inside a container that is vscode is connected to. So the above settings file refers to a
|
did adding the cwd help? Was any output produced after that change? |
adding the |
Type: Bug
Behaviour
Expected vs. Actual
Expected: VSC to correctly discover and load all test files in the
Testing
panel.Actual: VSC fails to recognize any test files. VSC will attempt to find test (after re-running
Tests: Refresh Tests
in command pallette), but does not succeed.Steps to reproduce:
Here is a layout of my current directory containing test files
tree
And here is a
python
snippet from mysettings.json
I tried downgrading the
Python
vscode extension to version 2022.8 per this issue, but still no luck.Diagnostic data
conda
environment)python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2022.8.0
VS Code version: Code 1.97.0 (Universal) (33fc5a94a3f99ebe7087e8fe79fbe1d37a251016, 2025-02-04T22:41:26.688Z)
OS version: Darwin arm64 24.3.0
Modes:
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: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
The text was updated successfully, but these errors were encountered: