Created
September 12, 2014 17:45
-
-
Save limhoff-r7/c668e486626d32cb95d6 to your computer and use it in GitHub Desktop.
CodeClimate simplecov formatter
This file contains 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
# ... | |
require 'codeclimate-test-reporter' | |
if ENV['TRAVIS'] == 'true' | |
formatters = [] | |
# don't use `CodeClimate::TestReporter.start` as it will overwrite some .simplecov settings | |
if CodeClimate::TestReporter.run? | |
formatters << CodeClimate::TestReporter::Formatter | |
end | |
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ | |
*formatters | |
] | |
end | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment