diff --git a/test/test_helper.rb b/test/test_helper.rb index 50eff00..bd45bc2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,13 +1,16 @@ require 'vcr' require 'ipaddr' require 'webmock' -require 'simplecov' require 'minitest/spec' require 'minitest/autorun' require 'elasticsearch/extensions/test/cluster' gem 'minitest' -SimpleCov.start + +if ENV['COVERAGE'] || ENV['CI'] + require 'simplecov' + SimpleCov.start +end require_relative '../lib/elasticsearch/drain'