Is there a way for me to easily run the Go test many times, stopping the first time it fails? I can of course do something like this:
for i in {1..1000}; do go test ./mypkg && done
but this causes a recompilation every time, which is very slow compared to the test itself. I suppose I can do this with some clever use of the -exec flag and xargs , but I'm not very good at single layer.
Bonus points to run it many times in parallel with some semblance of common sense verbose output if it suffers one or two out of a thousand times.
source share