Skip to content

fivetooldev/ruby-test-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeclimate-test-reporter

Collects test coverage data from your Ruby test suite and sends it to Code Climate's hosted, automated code review service. Based on SimpleCov.

Note: Code Climate's test coverage functionality is currently in private beta. If you are interested in volunteering for the beta, please contact us at hello@codeclimate.com .

Code Climate - https://codeclimate.com

Installation

This gem only works with Code Climate accounts, so if you don't have one the first step is to create an account at: https://codeclimate.com. Then:

  1. Add this to your Gemfile:

     gem install "codeclimate-test-reporter", group: :test
    
  2. Start the test reporter at the very beginning of your test_helper.rb or spec_helper.rb file:

     require "codeclimate-test-reporter"
     CodeClimate::TestReporter.start
    

Then set the CODECLIMATE_REPO_TOKEN environment variable when you run your build on your CI server, and the results will show up in your Code Climate account.

The CODECLIMATE_REPO_TOKEN value is provided after you add your repo to your Code Climate account if you are in the test coverage private beta.

Please contact hello@codeclimate.com if you need any assistance setting this up.

Contributions

Patches, bug fixed, 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).

Copyright

See LICENSE.txt

Portions of the implementation were inspired by the coveralls-ruby gem.

About

Uploads Ruby test coverage data to Code Climate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%