Skip to content
This repository
Browse code

Working rcov Rake task.

Closes #218
  • Loading branch information...
commit 895bc08df20e4da838f86431737a950b19637f22 1 parent 7fdf1a8
Gabe Berke-Williams authored October 15, 2011 joshuaclayton committed October 15, 2011

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  Rakefile
8  Rakefile
@@ -30,9 +30,11 @@ desc "Run the unit and acceptance specs"
30 30
 task :spec => ['spec:unit', 'spec:acceptance']
31 31
 
32 32
 desc 'Performs code coverage on the factory_girl plugin.'
33  
-Rcov::RcovTask.new do |t|
34  
-  t.test_files = FileList['spec/*_spec.rb']
35  
-  t.verbose = true
  33
+RSpec::Core::RakeTask.new(:rcov) do |task|
  34
+  task.pattern = 'spec/**/*_spec.rb'
  35
+  task.rcov = true
  36
+  task.rspec_opts = "--format progress"
  37
+  task.rcov_opts = %{--exclude osx\/objc,spec,gems\/ --aggregate coverage/coverage.data}
36 38
 end
37 39
 
38 40
 desc "Clean files generated by rake tasks"

0 notes on commit 895bc08

Please sign in to comment.
Something went wrong with that request. Please try again.