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:
parent
341e3369d1
commit
77aa857c71
1 changed files with 10 additions and 0 deletions
10
Rakefile
10
Rakefile
|
@ -117,3 +117,13 @@ task 'sinatra.gemspec' => FileList['{lib,test,compat}/**','Rakefile','CHANGES','
|
||||||
File.open(f.name, 'w') { |io| io.write(spec) }
|
File.open(f.name, 'w') { |io| io.write(spec) }
|
||||||
puts "updated #{f.name}"
|
puts "updated #{f.name}"
|
||||||
end
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue