You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project that includes thousands of tests, most of these are generated from testdata files. When I use the test explorer to run the tests it takes significantly longer to run these tests than when I run go test ./... directly. At first I thought that this might be due to caching, but turned out to be false. Even with all caches cleared, the test explorer is still a lot slower.
I recently showed the issue to @hyangah and we agreed that I file an issue here.
Click on "Run Tests" in the test explorer to run all tests
Run go test manually
On my machine (M1 Macbook), the test explorer run takes about 5 seconds while the go test run takes about 0.2 seconds. I would expect that both are about the same.
The text was updated successfully, but these errors were encountered:
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
I have a project that includes thousands of tests, most of these are generated from testdata files. When I use the test explorer to run the tests it takes significantly longer to run these tests than when I run
go test ./...
directly. At first I thought that this might be due to caching, but turned out to be false. Even with all caches cleared, the test explorer is still a lot slower.I recently showed the issue to @hyangah and we agreed that I file an issue here.
Steps to reproduce the behavior:
go test
manuallygo test
run takes about 0.2 seconds. I would expect that both are about the same.The text was updated successfully, but these errors were encountered: