gotestsum icon indicating copy to clipboard operation
gotestsum copied to clipboard

Wait before retrying tests via --rerun-failed flag

Open yay14 opened this issue 2 years ago • 1 comments

Is there a feature available to specify a wait time before retrying tests? This feature could potentially help mitigate failures caused by resource contention in services. Implementing an exponential wait time can be particularly effective in such scenarios, reducing the likelihood of failures.

yay14 avatar May 29 '23 12:05 yay14

Hello, thanks for the feature request! There's no way to do that today. Generally the --rerun-fails option is to deal with flaky tests, but I've never encountered a situation where the tests required extra wait time between attempts.

Could you elaborate on the scenario where extra delay would help? If the test is failing to acquire some resource, maybe it could implement some retry before failing?

dnephin avatar Jun 12 '23 02:06 dnephin