]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: test all 'std cmd' packages, even ones without _test.go files
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 13 Jun 2023 20:04:06 +0000 (16:04 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 27 Jul 2023 17:32:18 +0000 (17:32 +0000)
commitd2ec964e9c1ec84aa2e4444783ed68018ae4d5e4
tree341e1a01579a15b984c859a4622e002e9825943e
parent8a1ff5182780af72d08c3e6b91694425a1498014
cmd/dist: test all 'std cmd' packages, even ones without _test.go files

Remove the optimization added in CL 10492 that skips running 'go test'
on Go packages without _test.go files. By now, 'go test' can find real
problems even in packages that don't have any custom tests.

On my fairly fast laptop, running go test -short on all 164 normal
and 96 vendored packages without tests took around 10 seconds on
the first run and 2.5 seconds on the second, a small fraction of
the total all.bash time. So prioritize gains in the test coverage
over those savings in all.bash time.

Fixes golang/go#60463.

Change-Id: I3d2bec5c367de687e57131e7fd7e6b84fed30187
Reviewed-on: https://go-review.googlesource.com/c/go/+/503095
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/dist/test.go