From bfd1b30dcab47cd7152f31a93efdcc4dc6441b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Barri=C3=A9?= Date: Mon, 8 Sep 2025 12:11:22 +0200 Subject: [ruby/json] Enable test coverage when simplecov is available https://github.com/ruby/json/commit/f37e73cf44 Co-authored-by: Jean Boussier --- test/json/test_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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' -- cgit v1.2.3