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:28:14 GMT
Yeah, I know that's what buildr does (rake failed) for its own tests.
Exactly what I want, but for junit.
I might be able to reuse the reports *.xml and get the failures from there
without using a file for it.

On Thu, Jan 14, 2010 at 10:22, 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.
>
> At least, that's what I would do for this task.  Feel free to take a
> different route.
>
> Danie
>
>
> On Jan 14, 2010, at 12:14 PM, "Antoine Toulme" <antoine@lunar-ocean.com>
> wrote:
>
>  I was thinking there was maybe something bundled in junit to do that and
>> that we just need to press the right buttons.
>>
>> Totally ignorant of other test frameworks, but I can try with junit first
>> and we could expand.
>>
>> On Thu, Jan 14, 2010 at 09:56, Alex Boisvert <alex.boisvert@gmail.com
>> >wrote:
>>
>>  Yes, yes, yes :)
>>>
>>>
>>> On Thu, Jan 14, 2010 at 9:37 AM, Antoine Toulme <antoine@lunar-ocean.com
>>> >wrote:
>>>
>>>  Is it possible as of today to have Buildr run the tests that failed
>>>> during
>>>> the latest run (and only them) ?
>>>>
>>>> If not, would that be an interesting contribution ?
>>>>
>>>> Thanks,
>>>>
>>>> Antoine
>>>>
>>>>
>>>
>>>

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