Replies: 1 comment 3 replies
-
Hi! Are you saying that none of your tests work now or that you can't get coverage working? What should happen is that if you click run with coverage, thats a new experience but it shouldn't interfere with regular debug and run. Can you send an example of the test which you are running and getting no result? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I have a project which I've been working on for quite a while now.
I have made extensive use of the python unittest plugin which allows you to run and debug tests directly in vscode ui.
With the recent addition of code coverage, it seems my unit tests no longer want to execute.
They still run from command line just fine, but within vscode, all I get is "Finished running tests!", but no actual results show up, as in all the unit tests are still listed with open circles, not red or green as before.
The only thing I have done is update vscode to the latest version, which I have been doing more or less religiously.
I tried to google for this, but all I can find is issues relating to unit test discovery, this is not my problem, all my unittests are discovered, they just won't execute, none of the buttons next to the unit test do anything aside for printing the "Finished running tests!" message along with a timer which is under a second, and no results.
Do I need to update something do to the introduction of code coverage for python unittest?
I'm not sure how I can recreate the unittests to make them work, or where to even start looking to get them working again.
This has been happening in the past two version of vscode.
Some details
System is Windows 10 Enterprise 22H2 x64
vscode is:
Version: 1.95.2 (system setup)
Commit: e8653663e8840adaf45af01eab5c627a5af81807
Date: 2024-11-07T11:07:22.054Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045
Python plugin version: v2024.20.0
launch.json has the debug config setup like this, although even executing the tests won't do anything so I'm not sure it matters:
{
"name": "Python: Debug Tests",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"purpose": ["debug-test"],
"console": "integratedTerminal",
"justMyCode": false
},
If any other details are required, please let me know.
Thank you in advance
xp
Beta Was this translation helpful? Give feedback.
All reactions