summaryrefslogtreecommitdiff
path: root/ext/json/lib/json/ext.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/lib/json/ext.rb')
-rw-r--r--ext/json/lib/json/ext.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/json/lib/json/ext.rb b/ext/json/lib/json/ext.rb
index 7264a857fa0..c5f813181d4 100644
--- a/ext/json/lib/json/ext.rb
+++ b/ext/json/lib/json/ext.rb
@@ -1,3 +1,9 @@
+if ENV['SIMPLECOV_COVERAGE'].to_i == 1
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter "/tests/"
+ end
+end
require 'json/common'
module JSON