-
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 arg parsing bug #21176
Comments
Hi! Yes I am able to replicate what you are seeing. It seems like the extension is trying to run |
Hello! We have just finished our testing rewrite and are beginning the roll out to users. If you are able, it would be very helpful to know if your issue still exists on the rewrite! To try it yourself, you need to be on the most recent release of the Python extension and add this setting to your users |
It appears there is no difference if I add the Can I somehow verify if the new test adapter is being used? I updated my test repo with the |
Hi! You can see if it is enabled for you by setting |
This is my python log if I run the test in the Testing tab:
And this if I just run the discovery with the Refresh Tests button:
The log does not change if I set or unset the logLevel to Trace. It feels like the settings are not applied at all? But we can see that the |
hm yes I can see from |
Hi! Sorry haven't followed up on this in a minute. On further investigation, this is related to a larger issue around settings which the team will be discussing soon. I will update with information after that. |
I created a proposal with a solution for this problem, would love your input on the above issue! #21845 |
I'm not 100% sure it's related but the same happens when using Run completed, parsing output
Error while running tests: test_successful_command
TypeError: Cannot read properties of null (reading 'testsuites')
Error while running tests:
TypeError: Cannot read properties of null (reading 'testsuites') |
Hi all, actually just posted in #22032 about a similar issue and just want to call out that I have args, but when I have Pytest-xdist explicitly says |
@nsheaps thank you for your contribution! We will keep this in mind as we work through the proposal! |
I am getting this error on a very simple pytest project. Cannot get debugging to work.
Not sure what's going on. Just tried in another project. Same error there :( This used to work, as there has been some time while I did not do any python development I cannot say at what time it stopped working. |
hm interesting- could you open an new bug report since this is likely a different problem? Primarily I would need logs from the python output channel but if you use the report issue command on vscode it will gather all this info for you. Thanks! |
Ok, will do that, thanks. |
For reference: #23776 |
Type: Bug
Behaviour
Expected vs. Actual
Running a pytest test with pytestArgs results in the error
After removing the pytestArgs from the settings.json, everything runs as expected.
Steps to reproduce:
pytest . --test_option somevalue
Diagnostic data
This test report was made on an Ubuntu machine, but can also be reproduced on a Windows system with the latest VS Code and python extension.
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.6.1
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:52.732Z)
OS version: Linux x64 6.2.0-20-generic
Modes:
Sandboxed: Yes
System Info
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: