On Sun, Aug 17, 2008 at 4:15 AM, lacton <[EMAIL PROTECTED]> wrote: >>> Is there a rake task to generate this report? >> >> rake rcov > > OK. > > By the way, there's a '<<' missing on the 'task.spec_opts' in > rakelib/rspec.rake.
Thanks, fixed. > >> It outputs to report/coverage and report/spec.html. I plan to >> integrate that back into the site. > > That would be great. > > One thing I don't understand is how rcov chooses which ruby files > should be included in the test coverage report. For instance, why > does it exclude the addon directory? Actually, things are in addon because they don't have much (read: any) test coverage :-) spec/spec_helpers.rb includes lib directory in $LOAD_PATH, and then loads all of buildr so rcov knows to analyze these files. There are no specs that load anything from addon, I know you have a few, I'm guessing without including addon in $LOAD_PATH, so the tested code probably comes from the gem directory, and that gets excluded. Assaf > > Lacton > >> Assaf >
