Working rcov Rake task.

Closes #218
This commit is contained in:
Gabe Berke-Williams 2011-10-15 16:18:45 -04:00 committed by Joshua Clayton
parent 7fdf1a8858
commit 895bc08df2
1 changed files with 5 additions and 3 deletions

View File

@ -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"