go-test
Test Go packages (files have to end with _test.go). tldr-pages
On several platforms
Several platforms
Test Go packages (files have to end with _test.go). Note: ./... is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory.
Test the package found in the current directory
go testIdentifyverbosely test the package in the current directory
go test -vIdentifyTest the packages in the current directory and all subdirectories
go test -v ./...IdentifyTest the package in the current directory and run all benchmarks
go test -v -bench .IdentifyTest the package in the current directory and run all benchmarks for 50 seconds
go test -v -bench . -benchtime 50sIdentifyTest the package with coverage analysis
go test -coverIdentify