buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Toulme <anto...@lunar-ocean.com>
Subject Re: Running tests that failed during last run
Date Thu, 14 Jan 2010 18:42:26 GMT
OK, I'll use that. Thanks!

On Thu, Jan 14, 2010 at 10:38, Alex Boisvert <alex.boisvert@gmail.com>wrote:

> On Thu, Jan 14, 2010 at 10:22 AM, Daniel Spiewak <djspiewak@gmail.com
> >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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message