diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 421b661..09fd099 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -31,7 +31,7 @@ jobs: lcov --directory . -b "$(realpath build/)" --capture --initial -o coverage.base && \ lcov --rc lcov_branch_coverage=1 --directory . -b "$(realpath build/)" --capture -o coverage.capture && \ lcov --directory . -b "$(realpath build/)" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && \ - lcov --directory . -b "$(realpath build/)" --remove coverage.info 'lib_standard_app' -o coverage.info && \ + lcov --directory . -b "$(realpath build/)" --remove coverage.info '*/unit-tests/*' --remove coverage.info 'lib_standard_app' --remove coverage.info '*/src/import/*' -o coverage.info && \ genhtml coverage.info -o coverage - uses: actions/upload-artifact@v3 diff --git a/unit-tests/gen_coverage.sh b/unit-tests/gen_coverage.sh index 453e792..c956343 100755 --- a/unit-tests/gen_coverage.sh +++ b/unit-tests/gen_coverage.sh @@ -8,7 +8,7 @@ BUILD_DIRECTORY=$(realpath build/) lcov --directory . -b "${BUILD_DIRECTORY}" --capture --initial -o coverage.base && lcov --rc lcov_branch_coverage=1 --directory . -b "${BUILD_DIRECTORY}" --capture -o coverage.capture && lcov --directory . -b "${BUILD_DIRECTORY}" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && -lcov --directory . -b "${BUILD_DIRECTORY}" --remove coverage.info 'lib_standard_app' -o coverage.info && +lcov --directory . -b "${BUILD_DIRECTORY}" --remove coverage.info '*/unit-tests/*' --remove coverage.info 'lib_standard_app' --remove coverage.info '*/src/import/*' -o coverage.info && echo "Generated 'coverage.info'." && genhtml coverage.info -o coverage