Permalink
Browse files

minor: only run simplecov for COVERAGE environment

  • Loading branch information...
1 parent 07fc661 commit c4a3eef44fb525499092de9545c0baa407418534 @TylerBrock TylerBrock committed Nov 20, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 tasks/testing.rake
View
@@ -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

0 comments on commit c4a3eef

Please sign in to comment.