How to `go test` all testings in my project? -


the go test command covers *_test.go files in 1 dir.

i want go test whole project, means test should cover *_test.go files in dir ./ , every chindren tree dir under dir ./.

what's command this?

this should run tests in current directory , of subdirectories:

$ go test ./... 

this should run tests import path prefixed foo/:

$ go test foo/... 

this should run tests import path prefixed foo:

$ go test foo... 

this should run tests in $gopath:

$ go test ... 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -