Skip to content

Commit

Permalink
Make coverage.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid authored and thed636 committed Nov 9, 2019
1 parent cb72916 commit ecca1ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmake/modules/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,19 @@ function(SETUP_TARGET_FOR_COVERAGE_GCOVR)
COMMAND mkdir -p ${Coverage_NAME}

# Running gcovr
COMMAND python2 ${GCOVR_PATH}
COMMAND ${GCOVR_PATH}
--html --html-details
-e "${COVERAGE_EXCLUDES}"
--root "${CMAKE_SOURCE_DIR}/"
--output "${CMAKE_BINARY_DIR}/${Coverage_NAME}/index.html"

# Running gcovr
COMMAND ${GCOVR_PATH}
--xml
-e "${COVERAGE_EXCLUDES}"
--root "${CMAKE_SOURCE_DIR}/"
--output "${CMAKE_BINARY_DIR}/${Coverage_NAME}/coverage.xml"

WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
DEPENDS ${Coverage_DEPENDENCIES}
COMMENT "Running gcovr to produce Cobertura code coverage report."
Expand Down

0 comments on commit ecca1ad

Please sign in to comment.