/example-ruby

Ruby coverage example

Primary LanguageRuby

Codecov Ruby Example

FOSSA Status

Guide

Travis Setup

Add to your .travis.yml file.

lang: ruby

script: bundle exec rake

rvm: 2.7

### Produce Coverage Reports

> Add to your `Gemfile`

```ruby
gem 'codecov', :require => false, :group => :test

Add to the top of your tests/helper.rb file

require 'simplecov'
SimpleCov.start

require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov

Caveats

Private Repo

Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide as an environment variable.

Links

License

FOSSA Status