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

How to enable branch coverage? #36

Open
carun opened this issue Jul 12, 2022 · 2 comments
Open

How to enable branch coverage? #36

carun opened this issue Jul 12, 2022 · 2 comments

Comments

@carun
Copy link

carun commented Jul 12, 2022

Are there variables exposed to generate branch coverage as it appears to be disabled by default?

@carun
Copy link
Author

carun commented Jul 13, 2022

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?

@carun
Copy link
Author

carun commented Jul 13, 2022

Apparently it is the --baseline-file option of genhtml that prevents branch coverage from being rendered in the HTML report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant