go test flags
Official documentation for `go test` execution flags including `-run`, `-shuffle`, `-short`, and parallelism controls.
Official documentation for go test execution flags including -run, -shuffle, -short, and parallelism controls.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/cmd/go#hdr-Testing_flags
What it covers
- test selection flags
- parallelism and shuffle
- short mode and execution control
Why authoritative
Official Go command documentation for test execution behavior.
Use when
- what test execution flags should I use in Go
- how do shuffle and short mode work
- how should I run subsets of Go tests
Keywords
- go test flags, shuffle, short mode, parallel tests, run flag