'Unable to run ginkgo bootstrap command on mac
When I run this command
ginkgo bootstrap
I am getting this error
zsh: command not found: ginkgo
I have already installed ginkgo using the following command
go get -u github.com/onsi/ginkgo/ginkgo
I am unable to understand what I am doing wrong?
Solution 1:[1]
After installing Ginkgo as described here, for example the latest version:
go env -w GO111MODULE=on
go install github.com/onsi/ginkgo/v2/ginkgo@latest
go get github.com/onsi/gomega/...
Make sure GO bin is in your PATH:
go env GOPATH # /home/user/go
export PATH=$PATH:$(go env GOPATH)/bin
Now try to run Ginkgo:
ginkgo bootstrap
Generating ginkgo test suite bootstrap for temp in:
temp_suite_test.go
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Noam Manos |