You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --branch-coverage flag to respect partial branch coverage (#608)
diff-cover treated any executed line (hits > 0) as covered, ignoring
Cobertura branch/condition-coverage data. A branch that was reached but
only partially exercised therefore passed even --fail-under=100.
Add an opt-in --branch-coverage flag that treats a partially covered
branch (branch="true" with condition-coverage below 100%) as a
violation. Default behaviour is unchanged.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
Unreleased
2
+
3
+
* Add --branch-coverage flag to diff-cover to treat partially covered branches in Cobertura XML reports as uncovered
4
+
5
+
1
6
05/30/2026 v10.3.0
2
7
3
8
* Add --show-covered flag to highlight covered diff lines in HTML report [PR 600](https://github.com/Bachmann1234/diff_cover/pull/600) Thanks @duxiaocheng
0 commit comments