Commit 00d0f8e3 authored by Rob Pike's avatar Rob Pike

cmd/go: rearrange help for 'go test'

Put the 'go test' flags into 'go help test', so 'go help testflags'
is about the flags for the compiled test binary.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5641060
parent 3484d546
......@@ -56,23 +56,7 @@ compiled.)
The package is built in a temporary directory so it does not interfere with the
non-test installation.
See 'go help testflag' for details about flags handled by 'go test'
and the test binary.
See 'go help importpath' for more about import paths.
See also: go build, go vet.
`,
}
var helpTestflag = &Command{
UsageLine: "testflag",
Short: "description of testing flags",
Long: `
The 'go test' command takes both flags that apply to 'go test' itself
and flags that apply to the resulting test binary.
The flags handled by 'go test' are:
The flags handled by 'go test' itself are:
-c Compile the test binary to pkg.test but do not run it.
......@@ -90,7 +74,23 @@ The flags handled by 'go test' are:
-x Print each subcommand go test executes.
The resulting test binary, called pkg.test, where pkg is the name of the
The test binary also accepts flags that control execution of the test; these
flags are also accessible by 'go test'. See 'go help testflag' for details.
See 'go help importpath' for more about import paths.
See also: go build, go vet.
`,
}
var helpTestflag = &Command{
UsageLine: "testflag",
Short: "description of testing flags",
Long: `
The 'go test' command takes both flags that apply to 'go test' itself
and flags that apply to the resulting test binary.
The test binary, called pkg.test, where pkg is the name of the
directory containing the package sources, has its own flags:
-test.v
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment