@Override
 public void testStarted(WikiTestPage test) {
   firstFailure = null;
   if (test.isTestPage()) {
     notifier.fireTestStarted(descriptionFor(test));
   }
 }
 @Override
 public void testComplete(WikiTestPage test, TestSummary testSummary) {
   increaseCompletedTests();
   if (firstFailure != null) {
     notifier.fireTestFailure(new Failure(descriptionFor(test), firstFailure));
   } else if (test.isTestPage()) {
     if (testSummary.getExceptions() > 0) {
       notifier.fireTestFailure(
           new Failure(
               descriptionFor(test),
               new Exception("Exception occurred on page " + test.getFullPath())));
     } else if (testSummary.getWrong() > 0) {
       notifier.fireTestFailure(
           new Failure(
               descriptionFor(test),
               new AssertionError("Test failures occurred on page " + test.getFullPath())));
     } else {
       notifier.fireTestFinished(descriptionFor(test));
     }
   }
 }