Code Climate just announced the addition of test coverage reporting to their suite of code quality tools. Exciting!
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
require 'codeclimate-test-reporter' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ Coveralls::SimpleCov::Formatter, SimpleCov::Formatter::HTMLFormatter, CodeClimate::TestReporter::Formatter ] SimpleCov.start 'rails'
You can also find any updates to the code here: https://gist.github.com/weimeng/6290044