codeclimate / test-reporter

Code Climate Test Reporter
MIT License
155 stars 76 forks source link

Coveralls reporting different coverage % than Code Climate #261

Open efueger opened 6 years ago

efueger commented 6 years ago

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.info through nyc on node.js.

Is there anything I can do in order to get those partial lines reported correctly as in Coveralls?


Specific example:

utils/filetype.js is a good reference:

image

image

image

Additional References

efueger commented 6 years ago

@zanona - feel free to add additional info for ^^ . Thanks!

ale7714 commented 6 years ago

👋 @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.

zanona commented 6 years ago

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.

kbrandwijk commented 6 years ago

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!

AccaliaDeElementia commented 6 years ago

+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.

bitsofdave commented 5 years ago

Any update on getting branch coverage into codeclimate?