Navigation Menu

Skip to content

Commit

Permalink
Improve coverage report utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
platisd committed Feb 12, 2020
1 parent 33e30ca commit 3231afb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run_coverage.sh
Expand Up @@ -12,7 +12,7 @@ coverage_ignore_dirs="\
'*/external/*'\
"

# Run coverage for ins-node and ins-server
# Run coverage
eval mkdir -p $coverage_report_dir
eval lcov --directory . --capture --output-file coverage.info
eval lcov --remove coverage.info $coverage_ignore_dirs --output-file $coverage_report_dir/cpp_coverage.info
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Expand Up @@ -43,7 +43,7 @@ function(configure_test testExecutable)
# Add executable to test suite
add_test(${testName} ${testExecutable} ${GTEST_RUN_FLAGS})
# Add tests to coverage reports
setup_target_for_coverage(NAME ${testName} EXECUTABLE ${testExecutable} DEPENDENCIES ${testExecutable})
setup_target_for_coverage(NAME ${testName}_coverage EXECUTABLE ${testExecutable} DEPENDENCIES ${testExecutable})
endfunction(configure_test)

# Common headers
Expand Down

0 comments on commit 3231afb

Please sign in to comment.