Code coverage done right.®

Welcome to Codecov Documentation. You'll find comprehensive guides and documentation to help you start working with Codecov as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started

Include entirely missed files

Codecov will ignore coverage files that use a "boil-the-ocean" strategy. Ruby does this when files are not included in your tests, and no lines are hit.

    include_full_missed_files: true  # default false

The resulting coverage report is a file with every line missed, even empty lines with no source code.

Notice how empty lines and comments contain coverage data.


Still missing files?

Simplecov.track_files is the answer. See the example snippet below.

SimpleCov.start do
  # e.g., usage of track files
  track_files "/app/**/*.rb"

Updated about a year ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.