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:
parent
553eb0ad49
commit
124b104ae8
2 changed files with 7 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
coverage/*
|
6
Rakefile
6
Rakefile
|
@ -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
|
Loading…
Reference in a new issue