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
Generating Tests: /path/to/bin/gotests -w -template_dir ./templatedir -all /path/to/main.go
output.Process: loading custom templates: ioutil.ReadDir: open ./templatedir: no such file or directory
Also, if you set the path using ${workspaceFolder} keyword, you get an error
Generating Tests: /path/to/bin/gotests -w -template_dir ${workspaceFolder}/templatedir -all /path/to/main.go
output.Process: loading custom templates: ioutil.ReadDir: open ${workspaceFolder}/templatedir: no such file or directory
I hope these paths get resolved!
Steps to reproduce the behavior:
Open command pallet
Click on 'Generate Unit Tests for Function/File/Package'
See error
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.$ code-insiders -v code-insiders: command not found
$ code --list-extensions --show-versions | grep golang.go golang.go@0.34.1
Go: Locate Configured Go Tools
command.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
If you set the absolute path to go.generateTestsFlags as follows, it works fine.
# output log Generating Tests: /path/to/bin/gotests -w -template_dir /path/to/templatedir -all /path/to/main.go Generated Test_main
However, if you set a relative path, you will get the following error.
Also, if you set the path using
${workspaceFolder}
keyword, you get an errorI hope these paths get resolved!
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: