aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 6 insertions, 0 deletions
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