aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2008-01-14 11:09:46 -0500
committerBryan Helmkamp <bryan@brynary.com>2008-01-14 11:09:46 -0500
commit124b104ae82aad8687d9f266de086d343b2b037c (patch)
tree533fd14cff25aa0ca4b7b0ecb2e41d2d55abd018
parent553eb0ad490abc7f85d9836c3ba959ab771d3cf4 (diff)
downloadrails-124b104ae82aad8687d9f266de086d343b2b037c.tar.gz
rails-124b104ae82aad8687d9f266de086d343b2b037c.tar.bz2
rails-124b104ae82aad8687d9f266de086d343b2b037c.zip
Add rake task for coverage
-rw-r--r--.gitignore1
-rw-r--r--Rakefile6
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
diff --git a/Rakefile b/Rakefile
index 2557babbc0..e45ade4f7d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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