Go 1 · Testing and profiling

Run matching tests

Run tests whose names match a regular expression, in one package.

go test -run TestLogin ./pkg/auth

Official Go 1 documentation

More testing and profiling commands

All testing and profiling commands · Go 1 cheatsheet

Was this page helpful?