Support simplecov-0.22.0.

simplecov-0.22.0 no longer support pre-0.18 result format. result data needs
  `lines` key for coverage data.
This commit is contained in:
Hiroshi SHIBATA 2023-01-25 16:45:19 +09:00
parent e82cef1762
commit 5e1e5af2e7
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
2 changed files with 2 additions and 2 deletions

View File

@ -1374,7 +1374,7 @@ update-config_files: PHONY
update-coverage: main PHONY
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
--install-dir .bundle --conservative "simplecov" -v "0.20.0"
--install-dir .bundle --conservative "simplecov"
refresh-gems: update-bundled_gems prepare-gems
prepare-gems: $(HAVE_BASERUBY:yes=update-gems) $(HAVE_BASERUBY:yes=extract-gems)

View File

@ -78,7 +78,7 @@ def invoke_simplecov_formatter
res.each do |path, cov|
next unless path.start_with?(base_dir) || path.start_with?(cur_dir)
next if path.start_with?(File.join(base_dir, "test"))
simplecov_result[path] = cov[:lines]
simplecov_result[path] = cov
end
a, b = base_dir, cur_dir