« Back to Index

Go: test command usage

View original Gist on GitHub

Tags: #go #tests

go test command.bash

# go test <path_to_tests> -- can be ./... for all found files or a specific path
# use -v for verbose output
# use -race to enable race detector
# use -run to execute a single test
#
go test ./pkg/logging/syslog/ -v -race -run TestSyslogList