to_cobertura: Create a Cobertura XML file

View source: R/cobertura.R

to_coberturaR Documentation

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.


covr documentation built on Nov. 9, 2023, 9:07 a.m.