Badgers v2.2.0
Function coverage, branch annotations, and lost-coverage detection
All changes are additive: line-only projects and existing stored snapshots/comparisons are unaffected.
New
- Function coverage end to end: function totals and baseline delta now appear in
badgers cov/badgers diffoutput, the PR comment (Functionrow), the Markdown report, and the HTML report card. The delta is computed only when both sides carry function data and is suppressed on coverage-scope changes. - Branch annotations in Files changed: changed lines with partially covered branches get their own warning annotations ("Partially covered branches"), distinct from uncovered-line warnings.
- Per-file branch columns: the Markdown "Coverage by path" table gains a
Branchescolumn and directory rollups gain branch summaries - only when the report carries branch data. - Lost-coverage detection (LBC): unchanged lines that were covered in the baseline but lost coverage in head are now listed -
Lost coverage: N unchanged linesplus[lost-coverage]markers in terminal output, and an "Unchanged lines that lost coverage" section in the PR comment. This pinpoints why the total delta dropped even when every changed line is covered (e.g. a deleted test).
Full Changelog: v2.1.0...v2.2.0