Table-driven test names with slashes show up as sub-sub-tests #3286
Labels
go-test
issues related to go test support (test output, test explorer, ...)
Unfortunate
unfortunate, but that ship has sailed
WorkingAsIntended
Milestone
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.Tools Configuration
Environment
GOBIN: undefined
toolsGopath:
gopath: /home/eggbertx/go
GOROOT: /usr/lib/go
PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin:/home/eggbertx/go/bin
Tools
Go env
Workspace Folder (gochan): /home/eggbertx/src/gochan
Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
Table-driven tests with a "/" character in the name are incorrectly shown as sub-sub tests. For example, the following test
is split up as seen in the screenshot below.
Steps to reproduce the behavior:
t.Run()
)foo/bar
as a sub-test ofTest
as seen in the output ofgo test
, it showsfoo
as a sub-test, withbar
incorrectly additionally nestedScreenshots or recordings
The text was updated successfully, but these errors were encountered: