>添加文件’.simplecov’到根目录>在’.simplecov’中添加代码:
require 'simplecov' require 'coveralls' SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start do add_filter 'app/admin' end
有关此功能的基本说明,请参见https://github.com/colszowka/simplecov#string-filter