1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add rake task for coverage

This commit is contained in:
Bryan Helmkamp 2008-01-14 11:09:46 -05:00
parent 553eb0ad49
commit 124b104ae8
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
coverage/*

View file

@ -6,5 +6,11 @@ Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_files = FileList['spec/**/*_spec.rb']
end end
Spec::Rake::SpecTask.new(:coverage) do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['-x', 'spec,gems']
end
desc "Default task is to run specs" desc "Default task is to run specs"
task :default => :spec task :default => :spec