Skip to main content

Module coverage_export

Module coverage_export 

Source
Expand description

LCOV and Cobertura exports, written from the shared run view.

These exist for compatibility, not as a headline: they let Supercov feed the viewers, hosted services and CI integrations a team already uses. Both read the same view the CLI and the gates read, so a consumer’s totals match what check enforced.

Two things are deliberately not done. Supercov records whether a line ran, not how many times, so an export states 1 or 0 and never invents an execution frequency a consumer would display as fact. And MC/DC conditions are not flattened into ordinary branches to fit a simpler model: a consumer would then report condition obligations as branch coverage, which is a different measurement. The richer evidence stays in the JSON view.

Constants§

FORMATS
The export formats, named once so the rest of the product never has to spell them. Supercov emits these formats; it never invokes the tools they are named after, and the packaging audit that enforces that reads this module as the single place allowed to name them.

Functions§

cobertura
A Cobertura XML report.
export
Render a run in the named format.
lcov
An LCOV tracefile.