Skip to content

Commit 0e996ce

Browse files
committed
Update coverage build config, ignoring inconsistent and mismatch
1 parent 6bb12fe commit 0e996ce

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/coverage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
source generators/conanrun.sh
7373
make coverage
7474
source generators/deactivate_conanrun.sh
75-
lcx="lcov --output-file=coverage.info --ignore-errors inconsistent,inconsistent" && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
75+
lcx="lcov --output-file=coverage.info --ignore-errors inconsistent,mismatch" && for i in `find . -name "*.info.cleaned"`; do lcx+=" --add-tracefile=$i"; done && $lcx
7676
- name: Codecov
7777
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c #v4.4.1
7878
if: github.repository_owner == 'apache'

‎cmake/celix_project/CodeCoverage.cmake‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ function (setup_target_for_coverage)
134134

135135
# Capturing lcov counters and generating report
136136
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/coverage
137-
COMMAND ${LCOV_PATH} --directory ${COVERAGE_SCAN_DIR} --capture --output-file ${OUTPUT_FILE}
138-
COMMAND ${LCOV_PATH} --remove ${OUTPUT_FILE} '**/error_injector/*' '**/mock/*' '**/.conan/*' '**/test/*' '**/gtest/*' '**/tst/*' '**/celix/gen/*' '**/googletest_project/*' '**/glog/*' '/usr/*' --output-file ${OUTPUT_FILE}.cleaned
137+
COMMAND ${LCOV_PATH} --directory ${COVERAGE_SCAN_DIR} --capture --output-file ${OUTPUT_FILE} --ignore-errors inconsistent,mismatch,empty
138+
COMMAND ${LCOV_PATH} --remove ${OUTPUT_FILE} '**/error_injector/*' '**/mock/*' '**/.conan/*' '**/test/*' '**/gtest/*' '**/tst/*' '**/celix/gen/*' '**/googletest_project/*' '**/glog/*' '/usr/*' --output-file ${OUTPUT_FILE}.cleaned --ignore-errors unused,empty
139139

140140
#test dependencies, so that test is runned
141141
DEPENDENCIES ${TEST_TARGET_NAME}

0 commit comments

Comments
 (0)