Skip to content

Instantly share code, notes, and snippets.

@limhoff-r7
Created September 12, 2014 17:43
Show Gist options
  • Save limhoff-r7/3339044ce89afc1032d9 to your computer and use it in GitHub Desktop.
Save limhoff-r7/3339044ce89afc1032d9 to your computer and use it in GitHub Desktop.
Coveralls and CodeClimate formatters for simplecov
# ...
require 'codeclimate-test-reporter'
require 'coveralls'
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
formatters << Coveralls::SimpleCov::Formatter
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