Skip to content

Instantly share code, notes, and snippets.

@weimeng
Last active December 21, 2015 10:09
Show Gist options
  • Save weimeng/6290044 to your computer and use it in GitHub Desktop.
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`.
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'
@weimeng
Copy link
Author

weimeng commented Sep 11, 2013

Updated to include Code Climate's new test coverage formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment