Skip to content

Instantly share code, notes, and snippets.

@limhoff-r7
Created September 12, 2014 17:45
Show Gist options
  • Save limhoff-r7/c668e486626d32cb95d6 to your computer and use it in GitHub Desktop.
Save limhoff-r7/c668e486626d32cb95d6 to your computer and use it in GitHub Desktop.
CodeClimate simplecov formatter
# ...
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