Skip to content

Commit 5e686cd

Browse files
author
Christos Konstantinos Matzoros
committed
Suppressing unused lcov exclude warnings
1 parent 05f046c commit 5e686cd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,23 @@ jobs:
6969
- name: Run tests with coverage
7070
working-directory: ${{ github.workspace }}/build
7171
run: |
72-
# Run tests while collecting coverage
7372
ctest --output-on-failure --output-junit test_results.xml
7473
75-
# Generate lcov report ONLY for OneStopParallel/include
74+
# Capture coverage ONLY from include/
7675
lcov --capture --directory . \
7776
--output-file coverage.info \
7877
--ignore-errors empty,mismatch \
7978
--include '*/OneStopParallel/include/*'
8079
81-
# Clean report (strip system + tests + apps if we want)
82-
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/apps/*' \
83-
--output-file coverage.info
80+
# Remove unused warnings: this is the KEY fix
81+
lcov --ignore-errors unused,empty,mismatch --remove coverage.info '*/tests/*' '*/apps/*' --output-file coverage.info
82+
83+
# Optional: silence header template warnings
84+
geninfo --rc geninfo_unexecuted_blocks=1 coverage.info
8485
8586
# Generate HTML report
8687
genhtml coverage.info --output-directory coverage_html
8788
88-
8989
- name: Upload coverage artifacts
9090
uses: actions/upload-artifact@v4
9191
with:

0 commit comments

Comments
 (0)