Created
September 12, 2014 17:43
-
-
Save limhoff-r7/3339044ce89afc1032d9 to your computer and use it in GitHub Desktop.
Coveralls and CodeClimate formatters for simplecov
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' | |
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