-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Debugging unit tests hangs indefinitely #1009
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
Comments
You haven't configured the unit tests in VS Code (see here https://code.visualstudio.com/docs/python/unit-testing) Another way to do this is
I've tested your repo at my end and it works. |
I did exactly as you asked and the problem is still there, unfortunately. By the way: my Python VSC extension was updated yesterday to |
Please could you send your launch.json so I could have a look at that. |
I use the launch.json in the git repo: That's the default one created by vsc |
You might want to check the docs https://code.visualstudio.com/docs/python/unit-testing First, go into the command palette and select You cannot debug unit tests via debug configuration in Between line 5 & 6 you'll find the code lense |
I did exactly that what you describe :) And I do not debug via the debug configuration in
This results in the creation of this
(I just pushed that settings file to the repo here) Subsequently the unit tests are discovered and the Code Lens buttons ( When I click any of the However, when I click any of the |
P.s. I also tried:
To no avail. |
Same issue here, but I use |
Yeah it works for me with |
Works for me as well, thanks @DonJayamanne !
…On Wed, Mar 21, 2018 at 2:50 PM, Martin ***@***.***> wrote:
Yeah it works for me with pytest :)
Thanks @DonJayamanne <https://github.com/donjayamanne> !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1009 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHhxWwB08N3ZVOdE00v5s__ypcXQG_qjks5tglqugaJpZM4Skqjv>
.
|
Reopening to create news entry |
* 📝 add news entry * 🔨 rephrase news entry * Fixes #1009
Uh oh!
There was an error while loading. Please reload this page.
Environment data
Actual behavior
When clicking
Debug Test
nothing happens, except showing theRunning Tests
throbber at the bottom of the window indefinitely.Expected behavior
Debugging line-by-line using breakpoints.
Steps to reproduce:
test.py
fileDebug Test
above thetestSomeService
functionLogs
Output of
Python Test Log
at startup of VSC: Output 1.txtNo output is given when using the
Debug Test
text button above thetestSomeFunction
function.Output after running a unit test using the
Run Test
button above thetestSomeFunction
function:The text was updated successfully, but these errors were encountered: