Navigation Menu

Skip to content

Commit

Permalink
Working rcov Rake task.
Browse files Browse the repository at this point in the history
Closes #218
  • Loading branch information
Gabe Berke-Williams authored and joshuaclayton committed Oct 15, 2011
1 parent 7fdf1a8 commit 895bc08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rakefile
Expand Up @@ -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"
Expand Down

0 comments on commit 895bc08

Please sign in to comment.