Skip to content

Commit c3125cc

Browse files
committed
Skip code coverage on Ruby >= 3.1
See simplecov-ruby/simplecov#1003
1 parent 996bcb9 commit c3125cc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spec/spec_helper.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@
99
ActiveSupport::VERSION::MAJOR &&
1010
ActiveSupport::VERSION::MAJOR < 4
1111

12-
SimpleCov.start do
13-
add_filter 'spec/'
12+
# Skip code covarge on Ruby >= 3.1
13+
# See https://github.com/simplecov-ruby/simplecov/issues/1003
14+
unless RUBY_VERSION >= '3.1'
15+
SimpleCov.start do
16+
add_filter 'spec/'
17+
end
18+
19+
Coveralls.wear! unless RUBY_PLATFORM.eql? 'java'
1420
end
1521

16-
Coveralls.wear! unless RUBY_PLATFORM.eql? 'java'
17-
1822
$LOAD_PATH.unshift(File.dirname(__FILE__))
1923
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2024
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))

0 commit comments

Comments
 (0)