Hey! These docs are for version 2.10, which is no longer officially supported. Click here for the latest version, 2.14!

Options for Go tests.

Backend: pants.backend.experimental.go
Config section: [go-test]

Basic options


--go-test-args="[<shell_str>, <shell_str>, ...]", ... -- [<shell_str> [<shell_str> [...]]]
default: []

Arguments to pass directly to the Go test binary, e.g. --go-test-args="-run TestFoo -v".

Known Go test options will be transformed into the form expected by the test binary, e.g. -v becomes -test.v. Run go help testflag from the Go SDK to learn more about the options supported by Go test binaries.

Advanced options


Deprecated options