Codecov Custom Coverage Format

Codecov JSON report format

While Codecov supports a large set of standard coverage formats, sometimes you need to add support to a third-party tool that doesn't have it.

Below is a very simple json coverage report that can be used if you are building a custom format.

{
  "coverage": {
    "filename": {
      "1": 0,      # line 1 missed
      "2": 1,      # line 2 hit once
      "3": "1/2",  # line 3 partial hit, one missing branch
      "4": "1/3",  # line 4 partial hit, two missing branches
					         # skip line 5
      "6": null,   # skip line 6
      "7": 5       # line 7 hit 5 times
    }
  }
}

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy