Search code examples
unit-testinggovisual-studio-code

Visual Studio Code's "Run Test | Debug Test" option missing from unit tests


I used to see "Run Test | Debug Test" links top of every test function in VS Code for Go. But they are missing now. How can I re-enable them?

This picture shows what I am talking about:

enter image description here


Solution

  • I have this situation when there are many folders in the project I opened in VScode. But these options appear only when I open the folder containing the script I want to run the test in in a new window in VSCode. I don't know why, it's weird.