Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmake/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

set(CODE_COVERAGE_VERBOSE ON)
set(CODE_COVERAGE_FORMAT "xml" CACHE STRING "Format of the coverage report.")
set(CODE_COVERAGE_TEST "ctest" CACHE STRING "Command to run tests.")
set(CODE_COVERAGE_TEST_ARGS "--output-on-failure" CACHE STRING "Parameters to the test command.")
set(CODE_COVERAGE_TEST "$<TARGET_FILE:tests>" CACHE STRING "Command to run tests.")
set(CODE_COVERAGE_TEST_ARGS "-a" CACHE STRING "Parameters to the test command.")
set(GCOVR_ADDITIONAL_ARGS
--exclude-noncode-lines
--exclude-unreachable-branches
Expand All @@ -22,7 +22,7 @@ setup_target_for_coverage_gcovr(
EXECUTABLE ${CODE_COVERAGE_TEST}
EXECUTABLE_ARGS ${CODE_COVERAGE_TEST_ARGS}
EXCLUDE "tests" "external"
DEPENDENCIES tests examples
DEPENDENCIES tests
)

append_coverage_compiler_flags()