Skip to content

Commit

Permalink
Enable branch coverage in lcov
Browse files Browse the repository at this point in the history
Closes #4888
  • Loading branch information
ligurio committed Apr 13, 2020
1 parent 9c0e40f commit 3d407fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.mk
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ build_coverage_debian:
test_coverage_debian_no_deps: build_coverage_debian
# Enable --long tests for coverage
cd test && /usr/bin/python test-run.py --force $(TEST_RUN_EXTRA_PARAMS) --long
lcov --compat-libtool --directory src/ --capture --output-file coverage.info.tmp
lcov --compat-libtool --directory src/ --capture --output-file coverage.info.tmp \
--rc lcov_branch_coverage=1
lcov --compat-libtool --remove coverage.info.tmp 'tests/*' 'third_party/*' '/usr/*' \
--output-file coverage.info
lcov --list coverage.info
Expand Down

0 comments on commit 3d407fb

Please sign in to comment.