Skip to content

Commit a989425

Browse files
committed
fix coverage reporting
1 parent a81418e commit a989425

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
cd build
121121
lcov --keep-going --ignore-errors mismatch --directory . --capture --output-file coverage.info
122122
lcov --ignore-errors mismatch --remove coverage.info '*/test/*' '*/bindings/*' -o coverage.info
123-
gcovr --root .. -e '../test' -e '../examples' -e '../src/bindings' --sonarqube -o coverage.xml --exclude-throw-branches \
123+
gcovr --root .. -e '../test' -e '../src/bindings' --sonarqube -o coverage.xml --exclude-throw-branches \
124124
--gcov-ignore-parse-errors --exclude-unreachable-branches
125125
# Strip branch attributes so SonarQube uses line coverage only
126126
# (gcovr's sonarqube format includes branch data that penalizes macro-generated conditionals like XBT_DEBUG)

sonar-project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ sonar.projectVersion=0.2
99
sonar.links.scm=https://github.com/simgrid/DTLMod/
1010
# Comma-separated paths to directories with sources (required)
1111
sonar.sources=src,include
12+
sonar.exclusions=src/bindings/**
1213
sonar.tests=test
13-
sonar.coverage.exclusions=test/**,src/bindings/** # do not consider test directory and Python bindings glue for coverage
14+
sonar.coverage.exclusions=test/** # do not consider test directory for coverage
1415

1516
sonar.cfamily.reportingCppStandardOverride=c++17
1617

0 commit comments

Comments
 (0)