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

Supported Coverage Report Formats

Codecov centrally ingests .xml .json and .txt type coverage report formats.

If your language / test suite does not generate one of these format coverage reports, you may need to add a conversion step to your build process.

Generally Supported Code Coverage Formats

Supported code coverage report format types include all test coverage reports we've seen in the wild so far, including:

  • Most of .xml format types (Cobertura XML, Jacoco XML, etc.)
  • Most of .json format types (Rlang JSON, Elm JSON, etc.)
  • Most of .txt format types (Lcov TXT, Gcov TXT, Golang Txt)

See the exhaustive list below

Non-Supported Code Coverage Formats

Non-supported code coverage report format types include:

.xccov (Xcode)
.ec
.exec
.coverage (Python)

Exhaustive acceptable report formats

Codecov processes reports server side and accepts report formats we have come across over the years. Below is a list of acceptable coverage report formats.

xml_processors = [
SCoverageProcessor() # [scala] via scoverage
JetBrainsXMLProcessor(), # [jetbrainsxml] JetBrains DetailedXML
CloverProcessor(), # [php] via clover
MonoProcessor(), # [c# mono]
CSharpProcessor(),
JacocoProcessor(), # [java] via jacoco
VbProcessor(), # [c++] [c#]
VbTwoProcessor(), # [c++] [c#]
CoberturaProcessor() # [python] via cobertura
]

txt_processors = [
LcovProcessor(), # [lcov] - Graphical version of Gcov
GcovProcessor(), # [gcov]
LuaProcessor(), # [lua]
GapProcessor(),
DLSTProcessor(), # [dlst]
GoProcessor(),
XCodeProcessor() # [xcode] - Native iOS development
]

json_processors = [
SalesforceProcessor(),
ElmProcessor(),
RlangProcessor(), # [r lang]
FlowcoverProcessor(),
VOneProcessor(),
ScalaProcessor(),
CoverallsProcessor(),
RspecProcessor(), # [rspec]
GapProcessor(),
NodeProcessor(),
]

Updated 6 months ago


Supported Coverage Report Formats


Suggested Edits are limited on API Reference Pages

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