Skip to content

Debugging unit tests hangs indefinitely #1009

Description

Environment data

  • VS Code version: 1.21.0 x64
  • Extension version (available under the Extensions sidebar): Python 2018.2.1
  • OS and version: Windows 10
  • Python version: 2.7.14

Actual behavior

When clicking Debug Test nothing happens, except showing the Running Tests throbber at the bottom of the window indefinitely.

image

Expected behavior

Debugging line-by-line using breakpoints.

Steps to reproduce:

  1. I set up a minimal repo to reproduce this: https://github.com/veuncent/vsc-debug-test
  2. Open the folder in VSC
  3. Open the test.py file
  4. Click Debug Test above the testSomeService function

Logs

Output of Python Test Log at startup of VSC: Output 1.txt

No output is given when using the Debug Test text button above the testSomeFunction function.

Output after running a unit test using the Run Test button above the testSomeFunction function:

----------------------------------------------------------------------
Ran 1 test in 0.019s

OK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions