Skip to content

Commit

Permalink
Adds in coverme reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Nov 28, 2011
1 parent ede1b5d commit 142db74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ require 'rspec/core/rake_task'
require 'bundler'
Bundler::GemHelper.install_tasks

Dir['tasks/**/*.rake'].each { |rake| load rake }

task :default => :test

desc "Run bushido tests"
Expand All @@ -14,3 +16,7 @@ end

desc "run rspec tests"
RSpec::Core::RakeTask.new('spec')

if ENV["RAILS_ENV"] != "production"
require 'ci/reporter/rake/rspec'
end
11 changes: 11 additions & 0 deletions tasks/cover_me.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'cover_me'

namespace :cover_me do
desc "Generate coverage report after running specs"
task :report do
puts "Reporting!"
CoverMe.config.formatter = CoverMe::EmmaFormatter
CoverMe.config.at_exit = Proc.new {}
CoverMe.complete!
end
end

0 comments on commit 142db74

Please sign in to comment.