Skip to content

Commit 4ac80da

Browse files
committed
Update lcov flags
1 parent 5a8b8e4 commit 4ac80da

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
run: |
3636
make -C build/ coverage
3737
declare -a EXCLUDE=("\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*3rdparty\*")
38-
echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
39-
lcov --rc lcov_branch_coverage=1 --list build/coverage.info
38+
echo ${EXCLUDE[@]} | xargs lcov --rc branch_coverage=1 -r build/coverage.info -o build/coverage.info
39+
lcov --rc branch_coverage=1 --list build/coverage.info
4040
- name: Check Coverage
4141
uses: FreeRTOS/CI-CD-Github-Actions/coverage-cop@main
4242
with:
@@ -73,7 +73,7 @@ jobs:
7373
path: ./
7474

7575
formatting:
76-
runs-on: ubuntu-20.04
76+
runs-on: ubuntu-latest
7777
steps:
7878
- uses: actions/checkout@v3
7979
- name: Check formatting

tools/cmock/coverage.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ execute_process( COMMAND lcov --directory ${CMAKE_BINARY_DIR}
1414
--base-directory ${CMAKE_BINARY_DIR}
1515
--initial
1616
--capture
17-
--rc lcov_branch_coverage=1
17+
--rc branch_coverage=1
1818
--rc genhtml_branch_coverage=1
1919
--output-file=${CMAKE_BINARY_DIR}/base_coverage.info
2020
)
@@ -45,7 +45,7 @@ execute_process(COMMAND ruby
4545
# capture data after running the tests
4646
execute_process(
4747
COMMAND lcov --capture
48-
--rc lcov_branch_coverage=1
48+
--rc branch_coverage=1
4949
--rc genhtml_branch_coverage=1
5050
--base-directory ${CMAKE_BINARY_DIR}
5151
--directory ${CMAKE_BINARY_DIR}
@@ -59,11 +59,10 @@ execute_process(
5959
--add-tracefile ${CMAKE_BINARY_DIR}/base_coverage.info
6060
--add-tracefile ${CMAKE_BINARY_DIR}/second_coverage.info
6161
--output-file ${CMAKE_BINARY_DIR}/coverage.info
62-
--no-external
63-
--rc lcov_branch_coverage=1
62+
--rc branch_coverage=1
6463
)
6564
execute_process(
66-
COMMAND genhtml --rc lcov_branch_coverage=1
65+
COMMAND genhtml --rc branch_coverage=1
6766
--branch-coverage
6867
--output-directory ${CMAKE_BINARY_DIR}/coverage
6968
${CMAKE_BINARY_DIR}/coverage.info

0 commit comments

Comments
 (0)