rules_go icon indicating copy to clipboard operation
rules_go copied to clipboard

Support the new `go test -shuffle` flag

Open ronilichtman opened this issue 2 years ago • 2 comments

What version of rules_go are you using?

v0.31.0

What version of gazelle are you using?

v0.25.0

What version of Bazel are you using?

v5.1.0

Does this issue reproduce with the latest releases of all the above?

yes

What operating system and processor architecture are you using?

macOS

Any other potentially useful information about your toolchain?

What did you do?

What did you expect to see?

Support for running golang tests with randomized order using the new -shuffle flag as described here: https://twitter.com/inancgumus/status/1397168068955021312?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1397168068955021312%7Ctwgr%5E%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fwww.redditmedia.com%2Fmediaembed%2Fnktggq%3Fresponsive%3Dtrueis_nightmode%3Dfalse

What did you see instead?

ronilichtman avatar Apr 21 '22 10:04 ronilichtman

https://github.com/golang/go/issues/28592

uhthomas avatar Apr 22 '22 18:04 uhthomas

Did you try passing it as a flag to your test?

bazel test --test_arg="--test.shuffle=on" //path/to:target

achew22 avatar Apr 26 '22 21:04 achew22