Learn R Programming

covr (version 3.6.4)

to_cobertura: Create a Cobertura XML file

Description

Create a cobertura-compliant XML report following this DTD. Because there are two DTDs called coverage-04.dtd and some tools do not seem to adhere to either of them, the parser you're using may balk at the file. Please see this github discussion for context. Where covr doesn't provide a coverage metric (branch coverage, complexity), a zero is reported.

Usage

to_cobertura(cov, filename = "cobertura.xml")

Arguments

cov

the coverage object returned from package_coverage()

filename

the name of the Cobertura XML file

Details

Note: This functionality requires the xml2 package be installed.