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

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

Open
pierrre opened this issue Sep 28, 2022 · 4 comments
Open

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

pierrre opened this issue Sep 28, 2022 · 4 comments
Labels
FeatureRequest go-test issues related to go test support (test output, test explorer, ...)

Comments

@pierrre
Copy link

pierrre commented Sep 28, 2022

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.

@gopherbot gopherbot added this to the Untriaged milestone Sep 28, 2022
@hyangah hyangah added the go-test issues related to go test support (test output, test explorer, ...) label Sep 29, 2022
@suzmue suzmue modified the milestones: Untriaged, vscode-go/later Oct 3, 2022
@SAbruzzo
Copy link

SAbruzzo commented Apr 23, 2023

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

@Form1ca
Copy link

Form1ca commented Feb 7, 2024

still problem
image

@firelizzard18
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest go-test issues related to go test support (test output, test explorer, ...)
Projects
Status: No status
Development

No branches or pull requests

7 participants