File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -76,3 +76,15 @@ endif()
7676if(BEMAN_EXEMPLAR_BUILD_EXAMPLES)
7777 add_subdirectory(examples)
7878endif()
79+
80+ # Coverage
81+ configure_file(cmake/gcovr.cfg.in gcovr.cfg @ONLY)
82+
83+ add_custom_target(
84+ process_coverage
85+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
86+ DEPENDS test
87+ COMMENT "Running gcovr to process coverage results"
88+ COMMAND mkdir -p coverage
89+ COMMAND gcovr --config gcovr.cfg .
90+ )
Original file line number Diff line number Diff line change 1+ root = @CMAKE_SOURCE_DIR@
2+ cobertura = @CMAKE_BINARY_DIR@/coverage/cobertura.xml
3+ sonarqube = @CMAKE_BINARY_DIR@/coverage/sonarqube.xml
4+ html-details = @CMAKE_BINARY_DIR@/coverage/coverage.html
5+ # XXX gcov-executable = @GCOV_EXECUTABLE@
6+ gcov-parallel = yes
7+ html-theme = blue
8+ html-self-contained = yes
9+ print-summary = yes
10+ filter = .*/beman/inplace_vector/.*
11+ exclude = .*\.t\.cpp
You can’t perform that action at this time.
0 commit comments