Assaph Mehr
8/7/2006 3:55:00 AM
On 8/7/06, Robert MannI <robmnl@gmail.com> wrote:
> I am wondering, for a rails project, would this be the correct way to use
> this?
>
> rcov -Ilib test/**/*.rb
>
> That works for me, albeit about 30% of my tests fail then, while when I run
> them using the rake task ("rake"), they all pass. So I suppose I must be
> doing something wrong.
This was actually discovered on a rails project. In Rails case there
seems to be some weird interaction where running all tests
(integreation and functional for me) causes clashes. The rake tasks
for rails also launch a separate test process for each, and now rcov
mimics that.
Using the coverage.task template provided by Mauricio for rails seems
to fix the issue.
HTH,
Assaph