-
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
Python.testing.pytestArgs does not work with option -m #21798
Comments
Hello! Could you try this on the rewrite, we have a new testing architecture. To try it yourself, you need to add this setting to your users You can confirm you have the rewrite enabled by setting Let me know if the rewrite fixes your issue. Thanks! |
Hi, I tried with following {
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["-m", "lazy"],
"python.experiments.optInto": ["pythonTestAdapter"],
"python.analysis.logLevel": "Trace"
} But, it sounds like the experiment option cannot be active, and the option does not work as expected neither
|
hm interesting. Did you reload your vscode windows? Also, you set it in your user settings json not your workspace one correct? |
As I am using a remote vscode, I have tried to edit my host's settings.json.
Then, I tried to reload the vscode. But, the results are the same, which is does not work as expected. |
Here is how I reproduce this bug in a public repository Clone a public repository https://github.com/benjaminp/six Hope this helps |
related to #21845. We will need to overhaul args now that we have more flexibility with our architecture. This issue will be resolved by that. Thanks |
Hi! Have you had any luck with this issue recently? We just expanded the experiment to include everyone so you should be on the rewrite (without the need for the setting). From your logs they always included |
Is it released? I just tried. It still does not work I am using |
Are you still seeing |
Not sure I am following. Can you list the full settings required for
testing your fix?
2ndly, would you mind to list the expectations for the fix?
As I tried the settings listed in this thread, option m still does not work
if it is not specify as one single string
…On Thu, 7 Dec 2023, 17:59 Eleanor Boyd, ***@***.***> wrote:
Are you still seeing ./venv/bin/python
~/.vscode-server/extensions/ms-python.python-2023.14.0/pythonFiles/testing_tools/run_adapter.py
in your ags? It should be enabled now unless you have a specific setting
disabling all experiments.
—
Reply to this email directly, view it on GitHub
<#21798 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YBI3BV5S4IMQZA6BK2QTYIH7Y5AVCNFSM6AAAAAA3LNVSNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBVHA2TCNRQHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hey @eleanorjboyd, this issue might need further attention. @mondwan, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
Any news on this issue? I have noticed that I cannot debug tests if I use |
All args must be in separate strings in the array so ["-m", "lazy"] is correct, if that is working then this is the desired behavior. @mondwan, are you seeing this too? If so this issue is resolved and I will close, thanks |
Oops! That was lacking some context. If I use If I use |
hi @robertdj hi @eleanorjboyd |
apologies I got mixed up, this is waiting on #21845 and that proposal will fix the incorrect arg parsing. Sorry and thank you for your patience! |
We removed arg parsing for pytest so this should no longer be an issue. I gave it a try and it seems to be resolved, please comment if you are still having an issue and I can re-open. Thanks! |
Type: Bug
Behaviour
Expected vs. Actual
For settings.json
Expect to see vscode to run pytest with argument in TEST RESULT UI
Running test with arguments: --rootdir /home/vdc/git/six --override-ini junit_family=xunit1 --junit-xml=/tmp/tmp-1147287WvATg175YF9w.xml -m lazy
But, -m is gone
Running test with arguments: --rootdir /home/vdc/git/six --override-ini junit_family=xunit1 --junit-xml=/tmp/tmp-1147287NQVjhdMkoSyI.xml
However, if you do something like that, it will work
Steps to reproduce:
Personally, I clone a open source project six to replicate this issue. HOpefully, this can be replicated with any python project
Diagnostic data
python.languageServer
setting: JediOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.14.0
VS Code version: Code 1.81.0 (6445d93c81ebe42c4cbd7a60712e0b17d9463e97, 2023-08-02T12:37:13.485Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Remote OS version: Linux x64 5.4.0-148-generic
Remote OS version: Linux x64 5.4.0-148-generic
Remote OS version: Linux x64 5.4.0-148-generic
The text was updated successfully, but these errors were encountered: