Skip to content

Commit f72ab3b

Browse files
committed
Add branch coverage
1 parent 6047797 commit f72ab3b

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ jobs:
4747
lcov --capture \
4848
--directory build \
4949
--output-file coverage.info \
50-
--ignore-errors mismatch,source
50+
--ignore-errors mismatch,source \
51+
--rc lcov_branch_coverage=1
5152
# Strip system headers, external deps, Catch2, and test files
5253
lcov --remove coverage.info \
5354
'/usr/*' \
@@ -56,8 +57,9 @@ jobs:
5657
'*/Catch2/*' \
5758
'*/tests/*' \
5859
--output-file coverage.info \
59-
--ignore-errors empty
60-
lcov --list coverage.info --ignore-errors empty
60+
--ignore-errors empty \
61+
--rc lcov_branch_coverage=1
62+
lcov --list coverage.info --ignore-errors empty --rc lcov_branch_coverage=1
6163
6264
- name: Upload to Codecov
6365
uses: codecov/codecov-action@v4

codecov.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ coverage:
88
status:
99
project:
1010
default:
11-
target: 85%
11+
target: 85%
12+
patch:
13+
default:
14+
target: 80%

0 commit comments

Comments
 (0)