Skip to content

Commit

Permalink
do not generate jruby coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Aug 31, 2023
1 parent 01ab3ae commit bd8cb35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .simplecov
Original file line number Diff line number Diff line change
@@ -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/}
Expand Down
7 changes: 6 additions & 1 deletion tasks/coverage.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd8cb35

Please sign in to comment.