summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/json/test_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/json/test_helper.rb b/test/json/test_helper.rb
index d849e28b9b..cf592debfd 100644
--- a/test/json/test_helper.rb
+++ b/test/json/test_helper.rb
@@ -1,5 +1,13 @@
$LOAD_PATH.unshift(File.expand_path('../../../ext', __FILE__), File.expand_path('../../../lib', __FILE__))
+begin
+ require 'simplecov'
+rescue LoadError
+ # Don't fail Ruby's test suite
+else
+ SimpleCov.start
+end
+
require 'json'
require 'test/unit'