From 124b104ae82aad8687d9f266de086d343b2b037c Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Mon, 14 Jan 2008 11:09:46 -0500 Subject: [PATCH] Add rake task for coverage --- .gitignore | 1 + Rakefile | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .gitignore 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