I was having trouble figuring out how to add Codecov to a ruby gem I was developing and testing with Rspec. So I wanted to write this guide to help show how to add Simplecov and upload your results to Codecov.
In your Gemfile:
gem 'simplecov-cobertura', require: false, group: :testgem 'codecov', require: false, group: 'test'
Require Statements in your Spec File:
require 'simplecov'SimpleCov.startrequire 'simplecov-cobertura'SimpleCov.formatter…