Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a single test multiple times using maven

I have a TestNG unit test that is intermittently failing. Is there a way to run a single unit test multiple times using the surefire plugin? If not, are there any suggestions on the best way to handle this?

like image 628
BillMan Avatar asked Mar 20 '13 19:03

BillMan


1 Answers

Once way I found is:

@Test(invocationCount = 100)
like image 107
BillMan Avatar answered Sep 21 '22 17:09

BillMan