CmdID

CmdID / Commands

go-test

Test Go packages (files have to end with _test.go). tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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 testIdentify

verbosely test the package in the current directory

go test -vIdentify

Test the packages in the current directory and all subdirectories

go test -v ./...Identify

Test the package in the current directory and run all benchmarks

go test -v -bench .Identify

Test the package in the current directory and run all benchmarks for 50 seconds

go test -v -bench . -benchtime 50sIdentify

Test the package with coverage analysis

go test -coverIdentify