Skip to content

Commit

Permalink
feat(coverage): add statements to lcov reports (#7146)
Browse files Browse the repository at this point in the history
* fix: add statements to lcov reports

* chore: fmt
  • Loading branch information
kayagokalp authored and DaniPopes committed Feb 19, 2024
1 parent 02ee99b commit d5cb774
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/forge/src/coverage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ impl<'a> CoverageReporter for LcovReporter<'a> {
)?;
}
// Statements are not in the LCOV format
CoverageItemKind::Statement => (),
CoverageItemKind::Statement => {
writeln!(self.destination, "DA:{line},{hits}")?;
}
}
}

Expand Down

0 comments on commit d5cb774

Please sign in to comment.