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.
https://app.codecov.io/{your-git-provider}/{your-git-username/{repo-name}/settings
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…
I'm a Software Developer out of Portland, Oregon. I like writing Ruby code, photography, and learning continuously. Website at https://ajm.codes