Skip to content

Commit 3e9ab08

Browse files
committed
fix: Update lcov command to ignore unused files in coverage report
1 parent 4a344bb commit 3e9ab08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
lcov --capture --directory build --output-file coverage.info --ignore-errors mismatch
119119
# Exclude system, tests, and only the top-level Rust workspace folder.
120120
# Do NOT exclude include/qtty (our C++ headers), which caused empty reports.
121-
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/build/*' "${GITHUB_WORKSPACE}/qtty/*" --output-file coverage.info --ignore-errors empty
121+
lcov --remove coverage.info '/usr/*' '*/tests/*' '*/build/*' "${GITHUB_WORKSPACE}/qtty/*" --output-file coverage.info --ignore-errors empty,unused
122122
lcov --list coverage.info
123123
124124
- name: Generate HTML coverage report

0 commit comments

Comments
 (0)