ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

[Question] Can I set a threshold for sum of FlakeAttempts?

Open mateusoliveira43 opened this issue 1 year ago • 2 comments

I would like to have a threshold for the total time tests are retried.

Example: if I have 10 tests and set FlakeAttempts(3) to all of them, I may end up running 30 (10 * 3, 20 being retries) tests.

I would like to set a limit to the total times of retries of tests, and if that limit is reached, fail the suite. (For example, in previous example, the limit is implicit 20, but would like to configure it to 5)

Is this possible? thanks!

mateusoliveira43 avatar Jan 23 '24 21:01 mateusoliveira43

hey @mateusoliveira43 - that's not possible at the moment, no. the only suite-wide limit you can impose is a time limit.

onsi avatar Jan 23 '24 21:01 onsi

thanks for quick answer @onsi !

mateusoliveira43 avatar Jan 23 '24 21:01 mateusoliveira43