File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 63
63
with :
64
64
args : >
65
65
--define sonar.cfamily.compile-commands=build/compile_commands.json
66
- --define sonar.coverageReportPaths=build/coverage/coverage.xml
66
+ --define sonar.coverageReportPaths=build/coverage/coverage.xml,build/coverage/coverage-examples.xml
67
67
env :
68
68
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
69
69
Original file line number Diff line number Diff line change @@ -75,7 +75,14 @@ if(ENABLE_COVERAGE)
75
75
COMMAND ${CMAKE_COMMAND} -E rm -rf "${PROJECT_BINARY_DIR} /coverage"
76
76
COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR} /coverage"
77
77
COMMAND
78
- gcovr -f "${PROJECT_SOURCE_DIR} /src/" -f "${PROJECT_SOURCE_DIR} /examples/" -r "${PROJECT_SOURCE_DIR} "
78
+ gcovr -f "${PROJECT_SOURCE_DIR} /examples/" -r "${PROJECT_SOURCE_DIR} "
79
+ --exclude-noncode-lines --exclude-throw-branches --exclude-unreachable-branches --decisions
80
+ --gcov-executable= "${GCOV_TOOL} "
81
+ --gcov-exclude-directories "${PROJECT_SOURCE_DIR} /vcpkg"
82
+ --gcov-delete
83
+ --sonarqube "${PROJECT_BINARY_DIR} /coverage/coverage-examples.xml"
84
+ COMMAND
85
+ gcovr -f "${PROJECT_SOURCE_DIR} /src/" -r "${PROJECT_SOURCE_DIR} "
79
86
--html-details -o "${PROJECT_BINARY_DIR} /coverage/index.html"
80
87
--exclude-noncode-lines --exclude-throw-branches --exclude-unreachable-branches --decisions
81
88
--gcov-executable= "${GCOV_TOOL} "
You can’t perform that action at this time.
0 commit comments