[英]SimpleCov Rails test coverage changing
這是由合並過程中的此錯誤引起的: https : //github.com/colszowka/simplecov/issues/444 。 建議的解決方法對我有用:
在lib/simplecov/merge_helpers.rb
if element.nil? && new_array[i].nil?
替換if element.nil? && new_array[i].nil?
if element.nil? && new_array[i].nil?
與if element.nil? || new_array[i].nil?
if element.nil? || new_array[i].nil?
一切歸功於ksmurphy 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.