Skip to content

Commit 7e57077

Browse files
committed
Filter gcovr to src/ directory only
The coverage report was including 15,781 lines from system headers and dependencies instead of just the ~1,500 lines of libhttpserver source. Use --filter to restrict coverage to src/ directory only.
1 parent 7efdb77 commit 7e57077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/verify-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ jobs:
668668
- name: Generate coverage report
669669
run: |
670670
cd build
671-
gcovr --root .. --exclude test/ --xml coverage.xml --xml-pretty --print-summary
671+
gcovr --root .. --filter '../src/' --xml coverage.xml --xml-pretty --print-summary
672672
if: ${{ matrix.os-type == 'ubuntu' && matrix.c-compiler == 'gcc' && matrix.debug == 'debug' && matrix.coverage == 'coverage' && success() }}
673673

674674
- name: Upload coverage to Codecov

0 commit comments

Comments
 (0)