I have a unit test that fails sometimes and debugging it is a pain because I don\'t know why it sometimes fails.
Is there a way inside Eclipse that I can run a JUnit
I just found the following solution which doesn't require any additional depedency (Spring is required for one of the answers you got).
Run your test with the Parameterized
runner:
@RunWith(Parameterized.class)
Then add the following method to provide a number of empty parameters equals to the number of times you want to run the test:
@Parameterized.Parameters
public static List
This way you don't even have to write a loop. IntelliJ and eclipse also group the results of every iteration together.