Adding Codecov to a Ruby Project

Photo by Luca Bravo on Unsplash

Prerequisites

https://app.codecov.io/{your-git-provider}/{your-git-username/{repo-name}/settings
gem 'simplecov-cobertura', require: false, group: :testgem 'codecov', require: false, group: 'test'
require 'simplecov'SimpleCov.startrequire 'simplecov-cobertura'SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatterrequire 'codecov'require 'file_to_test.rb'

How to Upload:

bash <(curl -s https://codecov.io/bash) -t {your token here}

I'm a Software Developer out of Portland, Oregon. I like writing Ruby code, photography, and learning continuously. Website at https://ajm.codes