Created
November 29, 2013 00:58
-
-
Save pinzolo/7700146 to your computer and use it in GitHub Desktop.
Coveralls でカバレッジ集計対象のファイルを制限する方法
https://coveralls.io/docs/ruby を参照
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimpleCov.formatter = Coveralls::SimpleCov::Formatter | |
SimpleCov.start do | |
# スペックファイルを除外 | |
add_filter "/spec/" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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