sendgrid / ruby-http-client

SendGrid's Ruby HTTP Client for calling APIs
https://sendgrid.com
MIT License
23 stars 54 forks source link

Setup and document local test coverage analysis #99

Closed RolandBurrows closed 4 years ago

RolandBurrows commented 5 years ago

Short description of what this PR does:

Test coverage analysis was only available through CI by default:

# ./test/test_helper.rb

if ENV['CI'] == 'true'
  require 'simplecov'
  SimpleCov.start
end

But now there's a convenient way to access it locally:

ruby-http-client$ rake test:coverage

<lots of debug info>
225 / 239 LOC (94.14%) covered

Note: someone from SendGrid with admin access should add the Test Coverage badge to the main README to show off that sweet 94%.

Checklist

codecov[bot] commented 4 years ago

Codecov Report

Merging #99 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files           2        2           
  Lines         341      341           
=======================================
  Hits          326      326           
  Misses         15       15           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4575ec2...2061ce5. Read the comment docs.

eshanholtz commented 4 years ago

Closing this PR as we now use Codecov for local test coverage.