Skip to content

Badgers v2.2.0

Choose a tag to compare

@devgony devgony released this 31 Jul 05:59
· 20 commits to main since this release

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 diff output, the PR comment (Function row), 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 Branches column 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 lines plus [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