updated coverage config

This commit is contained in:
matlabbe
2026-05-16 23:00:54 -07:00
parent e638569ea8
commit f58e0a5023
2 changed files with 4 additions and 10 deletions
+2 -5
View File
@@ -88,7 +88,7 @@ jobs:
else
GCOV_TOOL="gcov"
fi
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch)
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch,unused)
lcov --gcov-tool "$GCOV_TOOL" "${LCOV_IGNORE[@]}" \
--capture \
@@ -100,11 +100,8 @@ jobs:
'${{ github.workspace }}/*' \
--output-file lcov.info
lcov "${LCOV_IGNORE[@]}" --remove lcov.info \
'*/googletest/*' \
'*/_deps/*' \
'*/sqlite3/*' \
'*/corelib/test/*' \
'*/utilite/test/*' \
'*/rtflann/*' \
--output-file lcov.info
lcov --summary lcov.info
+2 -5
View File
@@ -32,7 +32,7 @@ detect_gcov_tool() {
fi
}
GCOV_TOOL="$(detect_gcov_tool)"
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch)
LCOV_IGNORE=(--ignore-errors gcov,source,graph,mismatch,unused)
configure_coverage_build() {
local -a gtest_args=()
@@ -104,11 +104,8 @@ lcov "${LCOV_IGNORE[@]}" --extract "$INFO_FILE" \
"${ROOT}/*" \
--output-file "$INFO_FILE"
lcov "${LCOV_IGNORE[@]}" --remove "$INFO_FILE" \
'*/googletest/*' \
'*/_deps/*' \
'*/sqlite3/*' \
'*/corelib/test/*' \
'*/utilite/test/*' \
'*/rtflann/*' \
--output-file "$INFO_FILE"
echo "Generating HTML..."