Skip to content

Instantly share code, notes, and snippets.

@pinzolo
Created November 29, 2013 00:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinzolo/7700146 to your computer and use it in GitHub Desktop.
Save pinzolo/7700146 to your computer and use it in GitHub Desktop.
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