pjweinb opened this issue
Mar 28, 2021
· 1 comment
Labels
goplsIssues related to the Go language server, gopls.TestingAn issue that has been verified to require only test changes, not just a test failure.ToolsThis label describes issues relating to any tools in the x/tools repository.
Because of the deleted files the tests no longer pass. (The modified files don't affect test results.)
The text was updated successfully, but these errors were encountered:
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Mar 28, 2021
Analyzer tests don't support rebuilding .golden files. So, the script just deletes .golden files under internal/lsp/analysis/. There are two possible solutions:
Don't remove .golden files for analyzer tests
#!/bin/bash- find ./internal/lsp/ -name *.golden -delete+ find ./internal/lsp/testdata/ -name *.golden -delete
go test ./internal/lsp/source -golden
go test ./internal/lsp/ -golden
go test ./internal/lsp/cmd -golden
Add support for rebuilding .golden files for analyzer tests
There's also a new issue with rebuilding .golden files. Commit golang/tools@4c651fc added summary_generics.txt.golden. It is used when type parameters are enabled:
goplsIssues related to the Go language server, gopls.TestingAn issue that has been verified to require only test changes, not just a test failure.ToolsThis label describes issues relating to any tools in the x/tools repository.
4 participants
You can’t perform that action at this time.
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.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Following the instructions in golang.org/x/tools/internal/lsp/tests/README.md, I executed
What did you expect to see?
i expected no changes
What did you see instead?
Because of the deleted files the tests no longer pass. (The modified files don't affect test results.)
The text was updated successfully, but these errors were encountered: