Codecov

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

Coverage Offset

Part of the Codecov static analysis is to retrieve the diff when comparing commits, and use the diff to offset coverage. Coverage may decrease by removing previous lines, which is not uncommon.

Let's show you how this occurs:

hit
  hit
- hit
  miss

Using the diff above, we made a commit that removed one line that was previously hit. The coverage before the commit was 75% (3/4), while the coverage after this commit is 66% (2/3).

Codecov will set the Project Status and Patch Status to success ✅ when it detects that the coverage was decreased due to the offset of the removed lines. Clearly, the coverage is lower, but not due to a developer fault.

Updated 8 months ago


Coverage Offset


Suggested Edits are limited on API Reference Pages

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