From f8b3615b1ffa93eecc4fe036c40362ae708eff37 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 7 Feb 2026 10:26:59 +0100 Subject: fix(coverage): Explicitly disable STRIP_ALL during coverage runs Added -DDEMO_STRIP_ALL=OFF to cmake configuration in gen_coverage_report.sh to ensure all test code is included in coverage analysis. Previously the script relied on the default value of STRIP_ALL, which could potentially exclude test infrastructure code from coverage reports. The remaining warnings in coverage output are benign lcov/genhtml warnings about unknown categories and data inconsistencies, normal for coverage analysis. Coverage: 57.8% lines, 76.0% functions (77 source files) Co-Authored-By: Claude Sonnet 4.5 --- scripts/gen_coverage_report.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gen_coverage_report.sh') diff --git a/scripts/gen_coverage_report.sh b/scripts/gen_coverage_report.sh index 46eb98f..fb362f4 100755 --- a/scripts/gen_coverage_report.sh +++ b/scripts/gen_coverage_report.sh @@ -37,7 +37,8 @@ mkdir -p "${BUILD_DIR}" cd "${BUILD_DIR}" echo "--- Configuring CMake with Coverage ---" -cmake "${PROJECT_ROOT}" -DDEMO_ENABLE_COVERAGE=ON -DDEMO_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug +# CRITICAL: Coverage must run WITHOUT STRIP_ALL to include all test code +cmake "${PROJECT_ROOT}" -DDEMO_ENABLE_COVERAGE=ON -DDEMO_BUILD_TESTS=ON -DDEMO_STRIP_ALL=OFF -DCMAKE_BUILD_TYPE=Debug echo "--- Building Tests ---" # Build only the test targets to save time, or all if needed. -- cgit v1.2.3