diff options
| author | Étienne Barrié <etienne.barrie@gmail.com> | 2025-09-08 12:11:22 +0200 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-09-11 11:54:49 +0900 |
| commit | bfd1b30dcab47cd7152f31a93efdcc4dc6441b3c (patch) | |
| tree | 5c587a1ab7451699c3488451fe5a726b716934d5 | |
| parent | d0c7f9ad64a972e91cb3471f808bdba8bf2f89f5 (diff) | |
[ruby/json] Enable test coverage when simplecov is available
https://github.com/ruby/json/commit/f37e73cf44
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
| -rw-r--r-- | test/json/test_helper.rb | 8 |
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' |
