1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

added rake task for rcov

This commit is contained in:
Homer Simpson 2009-09-26 06:28:09 +08:00 committed by Ryan Tomayko
parent 341e3369d1
commit 77aa857c71

View file

@ -117,3 +117,13 @@ task 'sinatra.gemspec' => FileList['{lib,test,compat}/**','Rakefile','CHANGES','
File.open(f.name, 'w') { |io| io.write(spec) }
puts "updated #{f.name}"
end
# Rcov ==============================================================
namespace :test do
desc 'Mesures test coverage'
task :coverage do
rm_f "coverage"
rcov = "rcov --text-summary --test-unit-only -Ilib"
system("#{rcov} --no-html --no-color test/*_test.rb")
end
end