From ecca1ad59d9536b35b6d72cd464c5c3e94d48cb2 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 16 Jan 2019 14:05:41 +0300 Subject: [PATCH] Make coverage.xml --- cmake/modules/CodeCoverage.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmake/modules/CodeCoverage.cmake b/cmake/modules/CodeCoverage.cmake index 2539ebdfe..abba14004 100644 --- a/cmake/modules/CodeCoverage.cmake +++ b/cmake/modules/CodeCoverage.cmake @@ -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."