diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-01-26 10:50:08 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-01-26 13:52:20 +0900 |
commit | 98e84f3f7a1fa69530c67ab9bc63271b812718ea () | |
tree | 5e836ac25e2a68adc8f9f104854010809962ee2a /tool/test-coverage.rb | |
parent | eb2670e32df1bfd63167748f81f480a0dc4f0f72 (diff) |
filter coverage result with vendored libraries and test code
Notes: Merged: https://.com/ruby/ruby/pull/7185
-rw-r--r-- | tool/test-coverage.rb | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,6 +4,12 @@ Coverage.start(lines: true, branches: true, methods: true) TEST_COVERAGE_DATA_FILE = "test-coverage.dat" def merge_coverage_data(res1, res2) res1.each do |path, cov1| cov2 = res2[path] @@ -77,7 +83,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 end |