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:
parent
e82cef1762
commit
5e1e5af2e7
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user