diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2008-01-14 11:09:46 -0500 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2008-01-14 11:09:46 -0500 |
commit | 124b104ae82aad8687d9f266de086d343b2b037c (patch) | |
tree | 533fd14cff25aa0ca4b7b0ecb2e41d2d55abd018 | |
parent | 553eb0ad490abc7f85d9836c3ba959ab771d3cf4 (diff) | |
download | rails-124b104ae82aad8687d9f266de086d343b2b037c.tar.gz rails-124b104ae82aad8687d9f266de086d343b2b037c.tar.bz2 rails-124b104ae82aad8687d9f266de086d343b2b037c.zip |
Add rake task for coverage
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Rakefile | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..22f348a165 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +coverage/*
\ No newline at end of file @@ -6,5 +6,11 @@ Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*_spec.rb'] 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" task :default => :spec
\ No newline at end of file |