Permalink
Browse files

Working rcov Rake task.

Closes #218
  • Loading branch information...
1 parent 7fdf1a8 commit 895bc08df20e4da838f86431737a950b19637f22 Gabe Berke-Williams committed with joshuaclayton Oct 15, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 Rakefile
View
@@ -30,9 +30,11 @@ desc "Run the unit and acceptance specs"
task :spec => ['spec:unit', 'spec:acceptance']
desc 'Performs code coverage on the factory_girl plugin.'
-Rcov::RcovTask.new do |t|
- t.test_files = FileList['spec/*_spec.rb']
- t.verbose = true
+RSpec::Core::RakeTask.new(:rcov) do |task|
+ task.pattern = 'spec/**/*_spec.rb'
+ task.rcov = true
+ task.rspec_opts = "--format progress"
+ task.rcov_opts = %{--exclude osx\/objc,spec,gems\/ --aggregate coverage/coverage.data}
end
desc "Clean files generated by rake tasks"

0 comments on commit 895bc08

Please sign in to comment.