Test Explorer keeps obsolete method names when renaming test suite methods #2974
Labels
Go Companion
Issues relating to the Go Companion extension
go-test
issues related to go test support (test output, test explorer, ...)
Milestone
Describe the bug
Use case: Using test explorer with Testify test suites and renaming suite methods.
Bug: Test explorer keeps old, obsolete and intermediate namings.
Expected behaviour: Test explorer shall mirror only the really existant test methods.
Point in question: How shall test explorer handle test suite methods in general?
Steps to reproduce the behavior:
github.com/stretchr/testify/suite
func (s *TestSuite) TestFooBar()
(screenshot 01).TestFooBarXyz
via typing in the editorScreenshots
01 - method created
![01-test-method-created](https://private-user-images.githubusercontent.com/11380299/268239813-ec63a21a-444d-4565-a0ba-52916cea7f00.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwMDc0MTAsIm5iZiI6MTc0MDAwNzExMCwicGF0aCI6Ii8xMTM4MDI5OS8yNjgyMzk4MTMtZWM2M2EyMWEtNDQ0ZC00NTY1LWEwYmEtNTI5MTZjZWE3ZjAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDIzMTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxNDg3YTM5Y2NlNDlkMTBhMDhjNjA2NmZjMDdmNGIwOTYwYTQ5MTdlNzMzZTVhNTI3YWUxODIzOTQ5MjBjZDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IEpKKTkA6iJ9zprHOxt0fqysaXoIFeg1oCmAPB5Wres)
02 - method renamed
![02-test-method-renamed](https://private-user-images.githubusercontent.com/11380299/268239830-c5d22083-27d1-410b-9c2a-7288482c3dd9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDAwMDc0MTAsIm5iZiI6MTc0MDAwNzExMCwicGF0aCI6Ii8xMTM4MDI5OS8yNjgyMzk4MzAtYzVkMjIwODMtMjdkMS00MTBiLTljMmEtNzI4ODQ4MmMzZGQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDIzMTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY5OTg2ZGMwODU3YmQ1ZTMzN2UyYTRkYjRlMGVkOTE3NzEyZTE1ZmVkNmY0NmZjNzBiMzcxNWY4NGY5YTFkZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sgN2FPOvQw1IE0v3EA1uhy41Qco1QezQ0aHdIJJvl4Q)
What version of Go, VS Code & VS Code Go extension are you using?
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
The text was updated successfully, but these errors were encountered: