Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Why are branches that are never executed ignored? #28
I've noticed the Cobertura Jenkins plugin reporting high conditional coverage for a poorly tested project. Further investigation revealed that all untested files reported no (and I don't mean 0%) conditional coverage, so the aggregated result only included already-tested files, which inflated the average.
The reason is that gcovr simply doesn't report these branches:
If I replace that with:
I got the 0% coverage number for these files and the shamefully low aggregated result I was expecting.
Why are never executed branches currently skipped?