Created
September 13, 2013 18:53
-
-
Save jaryl/6554599 to your computer and use it in GitHub Desktop.
SpecHelper configuration for sending coverage reports to Coveralls and CodeClimate.
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 'simplecov' | |
require 'coveralls' | |
formatters = [SimpleCov::Formatter::HTMLFormatter] | |
formatters << Coveralls::SimpleCov::Formatter if ENV['COVERALLS_REPO_TOKEN'] | |
formatters << CodeClimate::TestReporter::Formatter if ENV['CODECLIMATE_REPO_TOKEN'] | |
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters] | |
SimpleCov.start 'rails' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment