May 2009
1 post
3 tags
Setup Rcov with Ruby on Rails on Ubuntu
Rrcov is a code coverage tool for Ruby. First of all we install it with Ruby gems. sudo gem install rcov Then we create a file lib/tasks/rcov.rake in your rails project. require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.test_files = FileList['test/unit/*.rb'] + FileList['test/functional/*.rb'] t.rcov_opts = ['--rails', '-x /var/lib', '--text-report', '--sort coverage'] t.output_dir =...
May 3rd
3 notes