Skip to content

Instantly share code, notes, and snippets.

@pinzolo
Created November 29, 2013 00:58
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Coveralls でカバレッジ集計対象のファイルを制限する方法 https://coveralls.io/docs/ruby を参照
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
# スペックファイルを除外
add_filter "/spec/"
end
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
add_filter do |source_file|
# redmine プラグインの ruby ファイルだけ対象にする
!source_file.filename.include?("plugins/redmine_hoge") || !source_file.filename.end_with?(".rb")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment