-
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 Failed: Extension version v2023.11.11731012, pythonTestAdapter setting on #21476
Comments
Hi! Thank you for catching this! This is using our new test rewrite architecture and it seems to be missing the right path to find everything. I will investigate further and get back to you with any questions or a fix. For now, you can disable the new testing rewrite using |
partial fix for #21476, make sure error display correctly. two part fix: fix "errors" to "error" in unittest payload to align with naming everywhere else add "result" and "test" to payload in run and discovery respectively even on error to havae resultResolver handle correctly.
The reason for this is the cwd was not added to the PYTHONPATH when unittest discovery was run. This fix is now merged and will be out in insiders tomorrow. Verification steps are just the repro steps above- conda environment is not required to verify. |
Awesome! Thanks for the fix!
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Eleanor Boyd ***@***.***>
Sent: Friday, June 23, 2023 5:51:44 PM
To: microsoft/vscode-python ***@***.***>
Cc: Paulo R. S. Mendonca ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/vscode-python] Extension version v2023.11.11731012 fails to discover test found with v2023.10.1 (Issue #21476)
Hi! Thank you for catching this! This is using our new test rewrite architecture and it seems to be missing the right path to find everything. I will investigate further and get back to you with any questions or a fix. For now, you can disable the new testing rewrite using "python.experiments.optOutFrom": ["pythonTestAdapter"],. Thanks!
—
Reply to this email directly, view it on GitHub<#21476 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACTMCBCCNVGFGQYNDW2HFPLXMYFXBANCNFSM6AAAAAAZQ4AOJQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The Pre-release version v2023.11.11731012 of Microsoft's Python extension for Visual Studio Code fails to discover one of my tests.
Behaviour
The command
Results in a Unittest test discovery error due to a module not being found.
Expected vs. Actual
In contrast, switching to release version v2023.10.1 of the same extension works without problems. It runs a different command, though:
Steps to reproduce:
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
The text was updated successfully, but these errors were encountered: