From 6b9ce119841f026a03904c1dfb5747a1a8d0caaf Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Thu, 15 Jun 2023 14:29:08 +0200 Subject: [PATCH] Enable branch coverage for C/C++ code --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6ad79aa63a66..ddcad2f78296 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -307,10 +307,10 @@ jobs: - name: Filter C coverage run: | - lcov --capture --directory . --output-file coverage.info - lcov --output-file coverage.info \ + lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file coverage.info + lcov --rc lcov_branch_coverage=1 --output-file coverage.info \ --extract coverage.info $PWD/src/'*' $PWD/lib/'*' - lcov --list coverage.info + lcov --rc lcov_branch_coverage=1 --list coverage.info find . -name '*.gc*' -delete if: ${{ runner.os != 'macOS' }} - name: Upload code coverage