Project

codecov

0.66
Repository is archived
No release in over a year
Hosted code coverage Ruby reporter.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.0
~> 1.0
~> 13.0
~> 1.0
~> 3.0

Runtime

>= 0.15, < 0.22
 Project Readme

🚨🚨 Deprecation Notice 🚨🚨

This uploader is being deprecated by the Codecov team. We recommend migrating to our new uploader as soon as possible to prevent any lapses in coverage.

You can visit our migration guide for help moving to our new uploader, and our blog post to learn more about our deprecation plan,

On February 1, 2022 this uploader will be completely deprecated and will no longer be able to upload coverage to Codecov.

Codecov Ruby Uploader

Codecov Gem Version Build Status Codecov FOSSA Status

Codecov.io upload support for Ruby.

Quick Start

Add to your Gemfile:

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

Add CI Environment Variable:

CODECOV_TOKEN="your repo token"

Find you repo token on your repo page at codecov.io. Repo tokens are not required for public repos on Travis-Ci, CircleCI, or AppVeyor CI.

Supported CIs

CI/CD
AppVeyor CI
Azure Pipelines
Bitbucket Pipelines
Bitrise CI
Buildkite CI
CodeBuild CI
CodePipeline
Circle CI
Codeship CI
Drone CI
GitLab CI
Heroku CI
Jenkins CI
Semaphore CI
Shippable
Solano CI
TeamCity CI
Travis CI
Wercker CI

Advanced Usage

Submit only in CI example

if ENV['CI'] == 'true'
  require 'codecov'
  SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

Useful Links

FAQ Recipe List Error Reference Changelog Support Community Boards

Caveats

  1. There are known issues when Simplecov.track_files is enabled. We recommend that you require all code files in your tests so that SimpleCov can provide Codecov with properly mapped coverage report metrics. codecov/support#133
  1. git must be installed.

Maintainers

Enterprise

For companies using Codecov Enterprise you will need to specify the following parameters:

CODECOV_URL="https://codecov.mycompany.com"
CODECOV_SLUG="owner/repo"
CODECOV_TOKEN="repository token or global token"

License

FOSSA Status