diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-07 10:26:59 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-07 10:26:59 +0100 |
| commit | f8b3615b1ffa93eecc4fe036c40362ae708eff37 (patch) | |
| tree | 03175a18d540422d1d4f2453c38fcbce81880131 /scripts | |
| parent | 8a2c465dbd17c1a96dbcab1997c5df110a26afe8 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gen_coverage_report.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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. |
