title: TestNG retrying failed tests doesn't output the correct test results
body: <p><strong>Setup:</strong>
  I have a class that extends the IRetryAnalyzer and have implemented a simple retry logic overriding the following method:
      public boolean retry(ITestResult result) { </p>
  
  <p>I have another class that extends the class TestListenerAdapter that retries tests that failed until they pass or report failures. I have implemented my logic overriding the following method:
      public void onTestFailure(ITestResult result) { </p>
  
  <p><strong>Scenario:</strong>
  I have a total of 10 tests. 1 out of the 10 tests fail 2 times and pass on the 3rd attempt with my retry logic. The test results show the following:
  Total tests: 12, Failed: 2, Skipped: 0</p>
  
  <p>What i would like is to output the correct number of tests run. And also disregard the 2 failures since the test passed at the end. So the result should look something like this:
  Total tests: 10, Failed:0, Skipped: 0</p>
  
  <p>What am i missing here? Do i need to modify the ITestResult object? If yes, how?</p>
  
  <p>FYI: I was able to achieve this using JUnit (implementing the TestRule interface).</p>
  
  <p>Thanks in advance.</p>