I'm using the IRetryAnalyzer class in TestNG in order to relaunch tests that fail (up to 5 attempts). Right now if I run a test and it fails three times before passing, it says:
Tests run: 4, Failures: 3, Errors 0, Skipped 0.
What I want the results to show is:
Tests run: 1, Failures: 0, Errors 0, Skipped 0.
Basically, I don't want it to count as a failure unless it fails all 5 reruns. How do I do this?