mirror of
https://github.com/golang/go
synced 2024-11-07 06:46:12 -07:00
cbb3f09047
This CL adds a new flag to the testing package and the go test command which randomizes the execution order for tests and benchmarks. This can be useful for identifying unwanted dependencies between test or benchmark functions. The flag is off by default. If `-shuffle` is set to `on` then the system clock will be used as the seed value. If `-shuffle` is set to an integer N, then N will be used as the seed value. In both cases, the seed will be reported for failed runs so that they can reproduced later on. Fixes #28592 Change-Id: I62e7dfae5f63f97a0cbd7830ea844d9f7beac335 Reviewed-on: https://go-review.googlesource.com/c/go/+/310033 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Trust: Bryan C. Mills <bcmills@google.com> |
||
---|---|---|
.. | ||
fstest | ||
internal/testdeps | ||
iotest | ||
quick | ||
allocs_test.go | ||
allocs.go | ||
benchmark_test.go | ||
benchmark.go | ||
cover.go | ||
example.go | ||
export_test.go | ||
helper_test.go | ||
helperfuncs_test.go | ||
match_test.go | ||
match.go | ||
panic_test.go | ||
run_example_js.go | ||
run_example.go | ||
sub_test.go | ||
testing_test.go | ||
testing.go |