Code Climate just announced the addition of test coverage reporting to their suite of code quality tools. Exciting!
As I expected, Code Climate's codeclimate-test-reporter gem was using SimpleCov to power their test coverage reporting.
At work, we're already using Coveralls to track test coverage over time. In addition, I'm using SimpleCov's HTMLFormatter to generate local test coverage reports so I don't have to wait on our CI provider for coverage reports.
Thankfully, it was fairly simple to add Code Climate's own formatter into my SimpleCov workflow.
codeclimate-test-reporter to your
Gemfile and at the top of
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
You can also find any updates to the code here: https://gist.github.com/weimeng/6290044