CMake-codecov
CMake-codecov copied to clipboard
How to enable branch coverage?
Are there variables exposed to generate branch coverage as it appears to be disabled by default?
It looks like the content of ~/.lcovrc
is being ignored.
$ cat ~/.lcovrc
lcov_branch_coverage = 1
genhtml_legend = 1
geninfo_external = 0
which probably implies that the branch coverage is not generated by gcov
. How do we get this to work?
Apparently it is the --baseline-file
option of genhtml
that prevents branch coverage from being rendered in the HTML report.