Speed up your test runs
The idea is old and Stefan bloged about that two years ago – why not collecting failed tests an rerun these? He showed the entry point: let a TestListener collect the failures in its addFailure() and addError() methods. I added another thing: why should I rerun a whole test suite (the class extending TestCase)? I just want the rerun that failing test case (the failing testXXX()-method). So the FailureRecorder generates a new Java class, extending TestCase (for Ant reasons) and providing a suite() method which return only these failing test methods.
The big test was Ant’s own build file – and it worked for me. I’ll hope the other team members are happy with that 😉