Skip to content

Run Test | Debug Test disappear on save, then re-appear when tabbing on/off the file. #2790

Closed
@amittleider

Description

@amittleider

vscode_weird_test_button_behavior

Environment data

  • VS Code version: 1.27.2
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv

Actual behavior

I have 2 files, test_vscode1.py and test_vscode2.py. I first discover the unit tests to get the Run Test | Debug Test buttons. Next, I remove the i = 0 line and re-save the file. The Run Test | Debug Test disappears permanently if I stay on this file. Next, I tab to the test_vscode1.py file and back to the test_vscode2.py file and the Run Test | Debug Test buttons re-appear.

Expected behavior

Don't make the Run Test | Debug Test buttons disappear on save.

Steps to reproduce:

  1. See the description above

Logs

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

Just a bunch of nose discovery stuff, don't think it's useful

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

devlogs.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions