Adding Codecov to a Ruby Project

Image for post
Image for post
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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store