Last active
December 21, 2015 10:09
-
-
Save weimeng/6290044 to your computer and use it in GitHub Desktop.
If you're using Coveralls, you don't need to wait for your CI to push coverage results to Coveralls.io! Just set an additional SimpleCov formatter to output the coverage files locally. Don't forget to add `/coverage` to `.gitignore`.
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 'simplecov' | |
require 'coveralls' | |
require 'codeclimate-test-reporter' | |
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ | |
Coveralls::SimpleCov::Formatter, | |
SimpleCov::Formatter::HTMLFormatter, | |
CodeClimate::TestReporter::Formatter | |
] | |
SimpleCov.start 'rails' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to include Code Climate's new test coverage formatter.