On Fri, Mar 11, 2011 at 2:55 PM, James OBrien <ja...@rapleaf.com> wrote:
> I'm using Rake to run my specs e.g. > > task :test do > Rake::Task['spec'].execute > end > > how can I aspect this to include some sort of coverage report - RCov maybe? > > Of course, I could just escape to the command line with something like > system('rcov rspec <files_spec.rb>') but I prefer to solve this > programaticaly since our spec task has filters set up etc which I don't want > to duplicate. > > any help appreciated. > > it seems the documentation on the RSpec 1 site > http://rspec.info/documentation/tools/rake.html points to a solution that > no longer works in RSpec 2 > > Thanks! > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > If you're looking at how to use RCov in your rake tasks, here is an example: https://github.com/rspec/rspec-core/blob/master/Rakefile#L30 If that all looks confusing, I would read up on how Rake works. Hope that helps!
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users