On Thu, Jan 14, 2010 at 10:22 AM, Daniel Spiewak <[email protected]>wrote:

> I don't think that JUnit has anything like this.  If I were you, I would
> look to rspec for inspiration.  When we finish running tests for a project,
> grab the list of test names which failed and save it to a file (maybe
> target/failed-tests?).  Then have your run-failed-tests task (maybe
> test:failed?) read that file and only run those tests, rather than usin the
> test provider to determine the set of all tests in that project.  Even
> better, you could still grab the list of all tests and then intersect it
> with the set of failed tests.  That way, you avoid running a
> previously-failed test which no longer exists.
>

Yep, I'd take the same approach too.

This way, the re-run task can be generic across test frameworks.

alex

Reply via email to