我像这样运行 simplecov
# test/test_helper.rb
require 'simplecov'
SimpleCov.start do
add_filter "/test/"
coverage_dir "/tmp/coverage/"
end
相反,或者除了打印这个
Coverage report generated for Unit Tests to /tmp/coverage. 30 / 31 LOC (96.77%) covered.
如何告诉 ruby/simplecov 将数字 96.77 保存到环境变量或文件中。