File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ sonar.projectVersion=0.2
99sonar.links.scm =https://github.com/simgrid/DTLMod/
1010# Comma-separated paths to directories with sources (required)
1111sonar.sources =src,include
12+ sonar.exclusions =src/bindings/**
1213sonar.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
1516sonar.cfamily.reportingCppStandardOverride =c++17
1617
You can’t perform that action at this time.
0 commit comments