Permalink
Browse files

Update Rakefile to use SimpleCov to generate code coverage stats.

  • Loading branch information...
1 parent 90f5dfc commit 2c0f44ac42812978e52088894953a340118c5ba7 @aquasync committed Jan 23, 2014
Showing with 5 additions and 8 deletions.
  1. +5 −8 Rakefile
View
@@ -15,17 +15,14 @@ Rake::TestTask.new do |t|
end
begin
- require 'rcov/rcovtask'
- # NOTE: this will not do anything until you add some tests
- desc "Create a cross-referenced code coverage report"
- Rcov::RcovTask.new do |t|
- t.test_files = FileList['test/test*.rb']
- t.ruby_opts << "-Ilib" # in order to use this rcov
- t.rcov_opts << "--xrefs" # comment to disable cross-references
+ Rake::TestTask.new(:coverage) do |t|
+ t.test_files = FileList["test/test_*.rb"]
+ t.warning = true
t.verbose = true
+ t.ruby_opts = ['-rsimplecov -e "SimpleCov.start; load(ARGV.shift)"']
end
rescue LoadError
- # Rcov not available
+ # SimpleCov not available
end
begin

0 comments on commit 2c0f44a

Please sign in to comment.