Skip to content

cmd/go: "go test" accepts -test.FLAG where FLAG is any flag accepted by "go build" #18682

@minux

Description

@minux

This behavior always existed from Go 1.0.

For example:

$ go test image -test.work
WORK=/tmp/go-build271188011
ok  	image	0.361s

Is this expected? I find it quite confusing as there is no -test.work flag documented anywhere and it conflicts with user defined -test.FLAG flags. If this is WAI, we probably should document it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions