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