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.

parsers:
  v1:
    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.Notice how empty lines and comments contain coverage data.

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"
end

Did this page help you?