BillMan
BillMan

Reputation: 9934

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?

Upvotes: 8

Views: 3471

Answers (1)

BillMan
BillMan

Reputation: 9934

Once way I found is:

@Test(invocationCount = 100)

Upvotes: 6

Related Questions