]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go, testing: add go test -skip flag
authorRuss Cox <rsc@golang.org>
Fri, 5 Aug 2022 18:15:03 +0000 (14:15 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 16 Sep 2022 14:48:54 +0000 (14:48 +0000)
commite4a2c38af5bdae12591004c3d35762d23da7a9bd
treeb38854b37e893c2eb905dbc252c6269ee11be572
parent819e3394c90e27483f1f6eabfb02d22c927a139d
cmd/go, testing: add go test -skip flag

For proposal #41583, add a new 'go test -skip' flag to make it easy
to disable specific tests, benchmarks, examples, or fuzz targets.

Fixes #41583.

Change-Id: Id12a6575f505dafdce4a149aedc454a002e93afa
Reviewed-on: https://go-review.googlesource.com/c/go/+/421439
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
12 files changed:
src/cmd/go/alldocs.go
src/cmd/go/internal/test/flagdefs.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/test/testflag.go
src/cmd/go/testdata/script/test_skip.txt [new file with mode: 0644]
src/testing/benchmark.go
src/testing/fuzz.go
src/testing/helper_test.go
src/testing/match.go
src/testing/match_test.go
src/testing/sub_test.go
src/testing/testing.go