Hi,

Perhaps I'm missing something, as I'm new to rcov. I've just set rcov
up this very moment - I want to put a ratchet in place on our CI
instance. I'm not sure what is going wrong for you, but it looks like
I'll only have to run the rcov rake task once in our CI sequence to
generate coverage and test the specs.

Running rcov with rspec via a rake task reports failure (somewhat
roughly) for me. The rake task itself fails if it finds a spec which
fails. If all specs pass, the rake task completes successfully.
Regardless of the result, it generates reports in the coverage
directory, which I'm going to have to work out how to scan, I suppose,
for my ratchet (still working on that part).

I'm using rspec 1.3.0 and rcov 0.9.8.

Cheers,
Nicholas

On Apr 13, 7:52 am, Craig Ambrose <[email protected]> wrote:
> Hi folks,
>
> I'm having a bit of trouble with our continuous integration setup. I have a
> CI rake task that runs our specs, our cucumber scenarios, metric_fu reports,
> and also checks thresholds against the metric_fu output and fails in the
> case of bad rcov, flay, flog or reek results.
>
> The bulk of this is working very well, code is here if anyone wants it:
>
> http://gist.github.com/364034
>
> However, the main problem here is that my specs get run twice. The tasks run
> in the following order:
>
> db:migrate
> spec
> metrics:all
> cucumber
> quality:check_thresholds
>
> The metrics:all task includes rcov. Since rcov runs the specs, I had hoped
> that it would be enough. However, it doesn't fail in the case of failing
> specs. It also seems to produce no output (at least with the metric_fu
> setup). So, I have to run the specs manually, then if they pass rcov will
> run them all again in order to get the coverage metric.
>
> Yes, my specs are dog slow and I need to do something about that, but
> anyway, can anyone think of a way that I can get the rcov score and prove
> that the specs pass without running the specs twice?
>
> cheers,
>
> Craig

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to