@FlakyTest similar to @RepeatedTest #3229
Closed
Bananeweizen
started this conversation in
General
Replies: 1 comment 2 replies
-
This topic has been discussed in length in: Please continue the discussion there. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Flaky tests have been a problem in every huge project I worked with. To overcome that, I have developed multiple approaches of automatically dealing with the flaky test by means of rules and extensions. My most recent approach is basically a variation of @RepeatedTest that doesn't have a fixed number of iterations, but rather adds more invocations depending on the test execution result monitored by being also an InvocationInterceptor. This works without any hacks of the test execution itself, deals fully with the lifecycle methods etc.
I was wondering if there are already other (better?) extensions for flaky tests, and whether something like dealing with flakiness as such would be something worth to consider in the JUnit project itself, especially if it can also be implemented extremely similar to the existing @RepeatedTest annotation.
Beta Was this translation helpful? Give feedback.
All reactions