Posts SimpleCov test coverage data from your Ruby test suite to Code Climate's hosted, automated code review service.
Code Climate - https://codeclimate.com
This gem requires a user, but not necessarily a paid account, on Code Climate, so if you don't have one the first step is to signup at: https://codeclimate.com. Then:
-
Add this to your Gemfile:
gem "codeclimate-test-reporter", group: :test
-
Start SimpleCov as you normally would (more information here: https://github.com/colszowka/simplecov)
-
Set the
CODECLIMATE_REPO_TOKEN
environment variable (provided after you add your repo to your Code Climate account by clicking on "Setup Test Coverage" on the right hand side of your feed) -
Run the
codeclimate-test-reporter
executable at the end of your test suite
Please contact hello@codeclimate.com if you need any assistance setting this up.
Across the many different testing frameworks, setups, and environments, there are lots of variables at play. If you're having any trouble with your test coverage reporting or the results are confusing, please see our full documentation here: https://docs.codeclimate.com/docs/setting-up-test-coverage
Patches, bug fixes, feature requests, and pull requests are welcome on the GitHub page for this project: https://github.com/codeclimate/ruby-test-reporter
This gem is maintained by Bryan Helmkamp (bryan@codeclimate.com).
See LICENSE.txt
Portions of the implementation were inspired by the coveralls-ruby gem.