summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-25 16:45:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-01-25 16:47:05 +0900
commit5e1e5af2e737bdc5537b4d2025d2ae8e57df3cdb (patch)
tree41a853e1baad257d5929c29e2fe4b1509a03a915 /tool
parente82cef17624556b995e2a3d6de4908deec6f11f8 (diff)
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.
Diffstat (limited to 'tool')
-rw-r--r--tool/test-coverage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/test-coverage.rb b/tool/test-coverage.rb
index c4ffa66a4f..8913d8d435 100644
--- a/tool/test-coverage.rb
+++ b/tool/test-coverage.rb
@@ -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