Coveralls reporting different coverage % than Code Climate
User wrote into Support with:
I have noticed that all my code coverages do not really score for partial lines, i.e: missed if statements.
- I am generating
lcov.infothroughnycon node.js.Is there anything I can do in order to get those partial lines reported correctly as in Coveralls?
Specific example:
- I am currently getting a 63% score on coveralls with partial lines, etc.
- But 71% under Code Climate.
utils/filetype.js is a good reference:
- Coveralls shows (88.89%), with partial for lines 4 and 7
- Code Climate shows all lines covered (100%)



Additional References
- Branch coverage https://www.tutorialspoint.com/software_testing_dictionary/branch_testing.htm
@zanona - feel free to add additional info for ^^ . Thanks!
👋 @zanona, thank you for using Code Climate and bringing this to our attention. Currently, Code Climate reports coverage on lines (or relevant lines) only. We don't support yet branch coverage but I'll bring this up for discussion internally. We'll update the issue when we have more news.
PS: thanks @efueger for document it.
Thanks, @ale7714 and @efueger. I will keep my following this issue. Hopefully, it can be something you guys can consider implementing soon. — It would be a great addition.
All the best.
I also noticed the missing branch information. This is currently forcing us to use another platform, which is not what we want... I hope there will be an update soon!
+1 to this issue as well. Code Climate is overall a great system, but without an accurate measurement of code coverage (statements and branches) we're having to use other mechanisms to report on this coverage.
It would be preferable to have all three measurements reported as part of codeclimate.
Any update on getting branch coverage into codeclimate?