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

Fixing Paths

For Codecov to operate properly, all files in the coverage report must match the git/hg file structure. Codecov has internal methods of mapping paths, but they may not work properly on all projects. You may provide patterns to fix file paths manually, to map them back accordingly.

  - "before/::after/"  # move path   e.g., "before/path" => "after/path"
  - "::after/"         # move root   e.g., "path/" => "after/path/"
  - "before/::"        # reduce root e.g., "before/path/" => "path/"

Regexp and glob pattern matching are allowed in the fixes.

  - "before/test-*::after/"

The pattern above will move files in the following manner.

before/tests-apples/test.js => after/test.js
before/tests-oranges/test.js => after/test.js
before/app-apples/app.js => before/app-apples/app.js

Updated 6 months ago

Fixing Paths

Suggested Edits are limited on API Reference Pages

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