On 5/25/07, Fischer, Daniel <daniel at danielfischer.com>
wrote:> Sorry to be a newb about this, but I''m trying to integrate rcov
into my
> tests. I tried to follow the example located here:
You don''t have to apologise for being a newb - we''re nice here
:-)
> http://rspec.rubyforge.org/tools/rcov.html
>
The correct page is actually here:
http://rspec.rubyforge.org/documentation/tools/rcov.html
(We''ve had some trouble deleting old pages)
> But to my dismay, I just don''t understand what to do. I tried to
run that
> task in the rspec plugins directory, but it threw an error about
pre_commit.
Are you trying to run RSpec''s own specs or *your* own specs? What
command did you type, in what directory and what console output did
you get? What are your versions of everything relevant? (ruby, rspec,
rails if you use that, rcov, rake, OS etc etc)
> Regardless though, I want to be able to rcov all of "my" code, so
where
> would I put this, in the regular Rakefile in the app directory?
I assume you''re using Rails then (RSpec is not only for Rails). You
should have a spec:rcov task ready for you! If you have grep, just do
the following to see all spec related tasks:
rake -T | grep spec
HTH,
Aslak
> That doesn''t
> make much sense though, does it? (Questioning because the syntax id
> different).
>
> Anyway, I''m confused, and I could use help, thanks!
>
> --
> www.writersbeat.com
> www.danielfischer.com
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>