0

I need to re-run failed tests immediately after they fail.

In junit4 we achieved it using this: How to Re-run failed JUnit tests immediately?

But now that we migrated to junit5 we are not able to achieve it.

Edgar Domingues
  • 778
  • 1
  • 6
  • 16
  • You need to use exstensions instead https://www.baeldung.com/junit-5-extensions. For example https://junit-pioneer.org/ has an extension implementation for test retry see source code: https://github.com/junit-pioneer/junit-pioneer/blob/main/src/main/java/org/junitpioneer/jupiter/RetryingTestExtension.java – Eugene Apr 23 '22 at 09:23

0 Answers0