diff --git a/test/test_helper.rb b/test/test_helper.rb index 55650ede..555105f7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,6 +1,9 @@ # frozen_string_literal: true -if RUBY_VERSION >= "3.1" +# Report test coverage to coveralls for only one Ruby version to avoid +# repeated builds. This also accounts for coveralls_reborn requiring +# RUBY_VERSION >= 2.5. +if RUBY_VERSION.start_with?("3.1") require "coveralls" Coveralls.wear! end