So here's my situation: I have a test that I would run multiple times and I'd like to set some sort of error tolerance i.e. if one run fails it doesn't report the testcase to have Failed. Say I run it 10 times and my target is that it should work properly at least 8 times.
A trivial solution would be to run the test in a loop and use a success count to determine whether to pass or fail a test case.
I was wondering if there was a better method. Perhaps a Junit rule along with the RunWith annotation ?
Thanks In Advance.