We Recommend

Beginning Ruby: From Novice to Professional Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.


Posted By

mdi on 06/25/08


Tagged

textmate rake rcov


Versions (?)


rcov rake task


Published in: Ruby 


  1. require 'rcov/rcovtask'
  2.  
  3. namespace :test do
  4. desc "Measure code coverage"
  5. Rcov::RcovTask.new(:coverage) do |t|
  6. t.libs << "test"
  7. t.test_files = FileList["test/**/*_test.rb"]
  8. t.output_dir = "doc/coverage"
  9. t.verbose = true
  10. t.rcov_opts << '--rails -x gems/*,rcov* --sort coverage'
  11. end
  12. end

Report this snippet 

You need to login to post a comment.