x/website: "How to Write Go Code" manual - top-level go test
does not find tests
#44460
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I followed "How to Write Go Code" manual, "Testing" section. The manual says:
However,
go test
doesn't work for the top folder:What did you expect to see?
I expected
go test
to find tests inmorestrings
automatically. Alternatively, the manual should suggest one of:go test ./morestrings
go test ./...
cd morestrings; go test
The text was updated successfully, but these errors were encountered: