-
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
Pytest node issue during test discovery #19334
Comments
The node id |
Output of
|
And output of
|
@Mirandatz Can you run pytest with |
|
@Mirandatz We have a fix for the crash. It should be in the next pre-release tomorrow. |
I updated VS Code to 1.69.1, but now this happens: Should I create a new issue? Is this related?
|
This is a known issue with how id's are handled when using plugins like hypothesis. We have a separate issue tracking ptyest issue with plugins, we have plans to address this with a new test adapter for pytest #16852 |
@Mirandatz When you run tests it generates a xml file with test results, would it be possible to find it and share the contents from it? You should be able to see the path in the output logs. |
It is stored in the /tmp directory somewhere. You have to look the Output > python log, it will show you the exact path:
|
The log output shows
But when I try to cp the file tmp-261pkSEVvxk0FhS.xml is errors out:
I think this file is automatically deleted? Or may it is not generate at all? I don't know. When I executed the command manually (instead of relying on VS Code) the .xml file contents were:
|
@Mirandatz it gets created as a temp file, I guess it is getting cleaned up when the process exits. Thanks for running it manually. One more favor, can you run the discovery script also manually. Both together should pinpoint the problem. Make sure the script path is correct for your machine.
|
I was unable to run that command:
But adapting it to use
|
Issue Type: Bug
Behaviour
Expected vs. Actual
Expected: test discovery works.
Actual: does not.
Steps to reproduce:
Click "Refresh tests" button.
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: 2022.8.0
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-15T02:58:26.441Z)
OS version: Linux x64 5.15.0-33-generic
Restricted Mode: No
Remote OS version: Linux x64 5.15.0-33-generic
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extra info: I have a single test file:

With the following code:
The text was updated successfully, but these errors were encountered: