CircleCI::CoverageReporter
CircleCI::CoverageReporter reports test coverage to your GitHub repository.
Getting started
Add CircleCI::CoverageReporter to your
Gemfileandbundle install:gem 'circleci-coverage_reporter', group: :testLoad
circleci/coverage_reporter/rake_taskin yourRakefile:require 'circleci/coverage_reporter/rake_task' if ENV['CIRCLECI']Issue CircleCI and GitHub token and add them to build environment variables with the following nameing convention:
Name Value COVERAGE_REPORTER_CIRCLECI_TOKENCircleCI API token with "view-builds" scope COVERAGE_REPORTER_VCS_TOKENGitHub personal access token with "repo" or "public_repo" scope Add the following steop to your
circle.yml:test: post: - bundle exec circleci:report_coverage
Example

Configuring CircleCI::CoverageReporter
CircleCI::CoverageReporter.configure do |config|
config.circleci_token = YOUR_CIRCLECI_API_TOKEN
config.vcr_token = YOUR_GITHUB_PERSONAL_ACCESS_TOKEN
end
then:
CircleCI::CoverageReporter.run
License
The gem is available as open source under the terms of the MIT License.