forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded
Milestone
Description
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.languageServersetting: 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:
- clone https://github.com/bagage/vscode-python-pytest
- put a breakpoint on test_sum.py:2
- run tests via vscode UI
- wait for breakpoint to be triggered
- stop debugger
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
(empty)
Output for Python Test Log in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python Test Log)
Error: TypeError: Cannot read property 'testsuites' of null
bagage and RoPP
Metadata
Metadata
Assignees
Labels
area-testingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugverifiedVerification succeededVerification succeeded