rules_go
rules_go copied to clipboard
Support the new `go test -shuffle` flag
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?
https://github.com/golang/go/issues/28592
Did you try passing it as a flag to your test?
bazel test --test_arg="--test.shuffle=on" //path/to:target