diff --git a/.simplecov b/.simplecov index cd8716df..efeb8908 100644 --- a/.simplecov +++ b/.simplecov @@ -1,4 +1,4 @@ -SimpleCov.enable_coverage :branch if RUBY_VERSION >= "2.5.0" +SimpleCov.enable_coverage :branch SimpleCov.add_filter %r{/vendor/} SimpleCov.add_filter %r{/spec/support/} diff --git a/tasks/coverage.rake b/tasks/coverage.rake index 935c7ddc..045ba1e6 100644 --- a/tasks/coverage.rake +++ b/tasks/coverage.rake @@ -24,7 +24,12 @@ namespace :coverage do task :report_per_ruby_version do require "simplecov" - versions = Dir["#{ENV.fetch("COVERAGE_DIR", "coverage")}/versions/*"].map { |f| File.basename(f) } + versions = Dir["#{ENV.fetch("COVERAGE_DIR", "coverage")}/versions/*"] + # do not include jruby coverage for now + # see https://github.com/simplecov-ruby/simplecov/pull/972 + .filter { |version| !version.include?("jruby") } + .map { |f| File.basename(f) } + versions.map do |version| puts "Generating report for: #{version}" SimpleCov.collate Dir["#{ENV.fetch("COVERAGE_DIR", "coverage")}/versions/#{version}/**/.resultset.json"] do