[rspec-users] Rcov rake task problems

James Byrne lists at ruby-forum.com
Tue Feb 3 12:30:51 EST 2009


desc "Rcov code coverage reports"
task :rcov => "rcov:all"
require 'rcov/rcovtask'

namespace :rcov do

  Rcov::RcovTask.new(:all) do
    task :rcov => "rcov:testunit"
  end

  Rcov::RcovTask.new(:testunit) do |t|
    t.libs << "test"
    t.output_dir = 'coverage'
    t.test_files = FileList['test/**/test*.rb']
    t.verbose = true
  end

end

However, this rake task works. So, the problem is in my rake task coding 
and not with rcov itself.
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list