Go testing
go.dev
- Free plan
- Windows
- macOS
- Linux
What Go testing is
Go testing is the testing toolkit included with Go, an open-source programming language supported by Google. The lightweight framework runs through the `go test` command and the `testing` package. It discovers test functions named `TestXXX` in files ending in `_test.go`; adding `-v` displays each test and its result. Go's standard toolchain also supports native fuzzing, which varies program inputs to look for bugs, and includes built-in benchmarking and profiling frameworks. The race detector can be enabled with `go test -race`, though it can find races only along code paths exercised by a run. For vulnerability checks, `govulncheck` identifies known issues and prioritizes those affecting functions or methods that are called. Its JSON output can feed CI/CD systems, and the Go team provides a GitHub Action. Go is free and has releases for Linux, macOS, and Windows. The language is used for cloud and network services, command-line interfaces, web development, DevOps, and site reliability engineering.
Who it suits
Go testing suits developers building and maintaining Go software who want tests, fuzzing, benchmarks, profiling, and vulnerability checks in the Go toolchain. It also fits teams working in cloud services, web development, DevOps, or related listed use cases.
Good to know, and what to watch
- Runs tests with the `go test` command.
- Supports native fuzzing in the standard toolchain.
- Includes benchmarking and profiling frameworks.
- Offers vulnerability checks and a GitHub Action.
- Free, with releases for Linux, macOS, and Windows.
- Race detection covers only code paths that run.
- Security fixes target the two most recent major releases.
Plans
Every plan and priceGo
Free plan
The verdict
Go's built-in testing tools cover ordinary tests, fuzzing, benchmarking, profiling, and selected security checks. The race detector's path limitation matters when deciding how much test coverage is needed.
What the maker publishes
- Benchmarks and profiling
- The Go project describes its tooling as including built-in testing, benchmarking, and profiling frameworks. source
- CI integration
- The Go team provides a GitHub Action for govulncheck, and govulncheck's JSON output can support integration with other CI/CD systems. source
- Cryptography compliance
- Go's cryptography libraries can be used in FIPS 140-3 compliant mode for regulated environments. source
- Download platforms
- The downloads page lists releases for Windows, macOS, and Linux, along with source archives and other ports. source
- Founded
- 2009 source
- Fuzzing
- Go's standard toolchain supports native fuzzing, which continuously manipulates program inputs to find bugs. source
- Help and support
- The Go site directs users to community help on Stack Overflow and the Gophers Slack, and to the Go issue tracker for bugs. source
- Race detection
- Go includes a race detector that can be enabled for tests with `go test -race`, but it only finds races in code paths that run. source
- Security updates
- The Go team issues security fixes for the two most recent major releases. source
- Test discovery
- The test framework runs test functions named `TestXXX` in files ending in `_test.go`. source
- Testing framework
- Go has a lightweight test framework built from the `go test` command and the `testing` package. source
- Use cases
- The Go site describes use for cloud and network services, command-line interfaces, web development, DevOps, and site reliability engineering. source
- Verbose test output
- Running `go test -v` lists the tests and their results. source
- Vulnerability scanning
- The `govulncheck` tool identifies known vulnerabilities that affect code and prioritizes findings based on whether vulnerable functions or methods are called. source
- What it does
- Go is an open-source programming language supported by Google for building simple, secure, scalable systems. source
Checked against the maker's pages on 7 Oct 2026.