Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: set relationship of coverage generation #44

Merged
merged 1 commit into from
Mar 15, 2024
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
8 changes: 4 additions & 4 deletions cmake/test/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function(add_code_coverage_all_targets)
-instr-profile=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/all-merged.profdata
-format="text" ${_exclude_regex} >
${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage.json
DEPENDS ccov-all-processing)
DEPENDS ccov-all-report)
else()
add_custom_target(
ccov-all-export
Expand All @@ -773,7 +773,7 @@ function(add_code_coverage_all_targets)
-instr-profile=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/all-merged.profdata
-format="text" ${_exclude_regex} >
${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage.json
DEPENDS ccov-all-processing)
DEPENDS ccov-all-report)
endif()

# Generate HTML output of all added targets for perusal
Expand All @@ -788,7 +788,7 @@ function(add_code_coverage_all_targets)
-show-line-counts-or-regions
-output-dir=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage
-format="html" ${_exclude_regex}
DEPENDS ccov-all-processing)
DEPENDS ccov-all-export)
else()
add_custom_target(
ccov-all
Expand All @@ -799,7 +799,7 @@ function(add_code_coverage_all_targets)
-show-line-counts-or-regions
-output-dir=${CMAKE_COVERAGE_OUTPUT_DIRECTORY}/coverage
-format="html" ${_exclude_regex}
DEPENDS ccov-all-processing)
DEPENDS ccov-all-export)
endif()

elseif(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES
Expand Down
Loading