summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Wen <jrw2175@columbia.edu>2016-01-23 23:25:15 -0500
committerJames Wen <jrw2175@columbia.edu>2016-01-25 01:04:51 -0500
commitb86a9b538cca91d2c2d9e5a86efc7ebdf42a1c28 (patch)
tree253944c9aad906e30dd1722c59ce47ac172843ed
parent7e87a8d9bc19c96b3a75405107d02de175ebcb75 (diff)
downloadbundler-b86a9b538cca91d2c2d9e5a86efc7ebdf42a1c28.tar.gz
Configure excluded directories for codeclimate and simplecov test coverage
-rw-r--r--spec/support/code_climate.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/support/code_climate.rb b/spec/support/code_climate.rb
index af9bff25b4..cfcd890a40 100644
--- a/spec/support/code_climate.rb
+++ b/spec/support/code_climate.rb
@@ -3,9 +3,22 @@ module Spec
def self.setup
require "codeclimate-test-reporter"
::CodeClimate::TestReporter.start
+ configure_exclusions
rescue LoadError
# it's fine if CodeClimate isn't set up
nil
end
+
+ def self.configure_exclusions
+ SimpleCov.start do
+ add_filter "/bin/"
+ add_filter "/lib/bundler/man/"
+ add_filter "/lib/bundler/vendor/"
+ add_filter "/man/"
+ add_filter "/pkg/"
+ add_filter "/spec/"
+ add_filter "/tmp/"
+ end
+ end
end
end