Skip to main content

parse_jacoco

Function parse_jacoco 

Source
pub fn parse_jacoco(content: &str) -> HashMap<PathBuf, FileCoverage>
Expand description

Parse a JaCoCo XML report (jacoco.xml) into a per-file coverage map.

JaCoCo is produced by the Gradle jacocoTestReport task and the Maven JaCoCo plugin. Paths are reconstructed as package/sourcefile (e.g. com/example/Main.java).