golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.89k stars 755 forks source link

Update test explorer when tests run from "go.testOnSave" #2483

Open pierrre opened 2 years ago

pierrre commented 2 years ago

Is your feature request related to a problem? Please describe. I'm using go.testOnSave = true. When I'm saving, the tests are running as expected. However, the test explorer (the bar/menu on the left side) is not updated. And the error message in the code are not updated either.

Describe the solution you'd like When tests are running on save, we should run the tests for the current package from the test explorer.

SAbruzzo commented 1 year ago

does is work for other languages or it is just a problem for go?

Form1ca commented 9 months ago

still problem image

firelizzard18 commented 4 months ago

vscode-go has two largely independent systems for handling tests: the old one that has most of the features, and the new test explorer implementation. Test on save is a feature of the old system, which is why the test explorer is not updated. I am working on merging the two systems, but the time I can devote to this is limited so it may be a while.

firelizzard18 commented 2 months ago

3523 adds support for VSCode's continuous test runs and will re-execute a test whenever it is updated.