Been trying to write some tests using Ginkgo: https://onsi.github.io/ginkgo/#top
I have followed the installation instructions
go install github.com/onsi/ginkgo/v2/ginkgo
go get github.com/onsi/gomega/...
When I type ginkgo version I get the following.
ginkgo : The term 'ginkgo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path
is correct and try again.
At line:1 char:1
+ ginkgo version
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (ginkgo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Looking online it looks like it's probably a GOPATH problem (here https://github.com/onsi/ginkgo/issues/684 and other places). When I do
> go env
set GOBIN=C:\Users\X-lem\Documents\Personal-Dev\go\bin
set GOPATH=C:\Users\X-lem\Documents\Personal-Dev\go;
Looking in my GOBIN I see a ginkgo.exe. I'm not sure how to fix this. I'm on Windows 10.