Below is my project structure:
/user/home/go/src/github.com/my_go_proj /main.go /mypackage /service.go /service_test.go GOPATH points to /user/home/go cd /user/home/go/src/github.com/my_go_proj go build ---> This works and creates the `my_go_proj` executable. go test ? github.com/my_go_proj [no test files] go test github.com/my_go_proj/mypackage go build gopkg.in/tomb.v2: no buildable Go source files in FAIL github.com/my_go_proj/mypackage [build failed] go test ./... ? github.com/my_go_proj [no test files] go build gopkg.in/tomb.v2: no buildable Go source files in FAIL github.com/my_go_proj/mypackage [build failed]
How do I run go test
to run the service_test.go test inside mypackage?
Update: updated the behaviour for go test ./...