Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor: only run simplecov for COVERAGE environment

  • Loading branch information...
commit c4a3eef44fb525499092de9545c0baa407418534 1 parent 07fc661
@TylerBrock TylerBrock authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 tasks/testing.rake
View
12 tasks/testing.rake
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.