Skip to content
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

"There was an error in running the tests." when stopping debugger #16475

Closed
bagage opened this issue Jun 14, 2021 · 2 comments · Fixed by #16769
Closed

"There was an error in running the tests." when stopping debugger #16475

bagage opened this issue Jun 14, 2021 · 2 comments · Fixed by #16769
Labels
area-testing bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@bagage
Copy link

bagage commented Jun 14, 2021

Environment data

  • VS Code version: 1.57.0
  • Extension version (available under the Extensions sidebar): v2021.5.926500501
  • OS and version: Fedora 34
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8 with pipenv
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: pytest 6.2.4
  • Relevant/affected Python-related VS Code extensions and their versions:
  • Value of the python.languageServer setting: pylance

Expected behaviour

When stopping debugging tests, I expect tests to be stopped without any error notification.

Actual behaviour

When disconnecting the debugger, tests are stoped and an error notification There was an error in running the tests. appears. When clicking View output, the only "error" visible is:

Error: TypeError: Cannot read property 'testsuites' of null

Steps to reproduce:

  1. clone https://github.com/bagage/vscode-python-pytest
  2. put a breakpoint on test_sum.py:2
  3. run tests via vscode UI
  4. wait for breakpoint to be triggered
  5. stop debugger

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

(empty)

Output for Python Test Log in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python Test Log)

Error: TypeError: Cannot read property 'testsuites' of null

@bagage bagage added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 14, 2021
@karthiknadig karthiknadig self-assigned this Jun 14, 2021
@karthiknadig karthiknadig added area-testing triage and removed triage-needed Needs assignment to the proper sub-team labels Jun 14, 2021
@karthiknadig
Copy link
Member

I can repro this.

@karthiknadig
Copy link
Member

This is addressed in #16769

@karthiknadig karthiknadig added the verified Verification succeeded label Jul 29, 2021
@karthiknadig karthiknadig added this to the August 2021 milestone Aug 5, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-testing bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
3 participants