Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Mar 10, 2024
1 parent ea762c7 commit 522d7fb
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function(setup_target_for_coverage_gcovr_html)
set(GCOVR_EXTRA_FLAGS
--json-summary
--json-summary-pretty
--html-them
blue)
--html-theme
github.dark-green)
set(GCOVR_HTML_CMD
${GCOVR_PATH}
${GCOVR_EXTRA_FLAGS}
Expand All @@ -145,40 +145,16 @@ function(setup_target_for_coverage_gcovr_html)
--json-summary
${Coverage_NAME}/summary.json
--json-summary-pretty
--cobertura
${Coverage_NAME}/coverage.cobertura.xml
--cobertura-pretty
--decisions
-r
${BASEDIR}
${GCOVR_ADDITIONAL_ARGS}
${GCOVR_EXCLUDE_ARGS}
--object-directory=${PROJECT_BINARY_DIR})

if(CODE_COVERAGE_VERBOSE)
message(STATUS "Executed command report")

message(STATUS "Command to run tests: ")
string(
REPLACE ";"
" "
GCOVR_HTML_EXEC_TESTS_CMD_SPACED
"${GCOVR_HTML_EXEC_TESTS_CMD}")
message(STATUS "${GCOVR_HTML_EXEC_TESTS_CMD_SPACED}")

message(STATUS "Command to create a folder: ")
string(
REPLACE ";"
" "
GCOVR_HTML_FOLDER_CMD_SPACED
"${GCOVR_HTML_FOLDER_CMD}")
message(STATUS "${GCOVR_HTML_FOLDER_CMD_SPACED}")

message(STATUS "Command to generate gcovr HTML coverage data: ")
string(
REPLACE ";"
" "
GCOVR_HTML_CMD_SPACED
"${GCOVR_HTML_CMD}")
message(STATUS "${GCOVR_HTML_CMD_SPACED}")
endif()

add_custom_target(
${Coverage_NAME}
COMMAND ${GCOVR_HTML_EXEC_TESTS_CMD}
Expand Down

0 comments on commit 522d7fb

Please sign in to comment.