Skip to content

Commit

Permalink
minor: only run simplecov for COVERAGE environment
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Nov 20, 2012
1 parent 07fc661 commit c4a3eef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tasks/testing.rake
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ namespace :test do
desc "Runs default test suites"
task :ruby do
if RUBY_VERSION >= "1.9.0" && RUBY_ENGINE == 'ruby'
require 'simplecov'
SimpleCov.start do
add_group "Mongo", 'lib/mongo'
add_group "BSON", 'lib/bson'
add_filter "/test/"
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start do
add_group "Mongo", 'lib/mongo'
add_group "BSON", 'lib/bson'
add_filter "/test/"
end
end
end

Expand Down

0 comments on commit c4a3eef

Please sign in to comment.