File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ jobs:
119119 run : |
120120 cd build
121121 lcov --keep-going --ignore-errors mismatch --directory . --capture --output-file coverage.info
122- lcov --ignore-errors mismatch --remove coverage.info '*/test/*' -o coverage.info
123- gcovr --root .. -e '../test' -e '../examples' --sonarqube -o coverage.xml --exclude-throw-branches \
122+ 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 \
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)
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ sonar.links.scm=https://github.com/simgrid/DTLMod/
1010# Comma-separated paths to directories with sources (required)
1111sonar.sources =src,include
1212sonar.tests =test
13- sonar.coverage.exclusions =test/** # do not consider test directory for coverage
13+ sonar.coverage.exclusions =test/**,src/bindings/** # do not consider test directory and Python bindings glue for coverage
1414
1515sonar.cfamily.reportingCppStandardOverride =c++17
1616
You can’t perform that action at this time.
0 commit comments