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

Coveralls reporting different coverage % than Code Climate #261

Open
efueger opened this issue Nov 21, 2017 · 6 comments
Open

Coveralls reporting different coverage % than Code Climate #261

efueger opened this issue Nov 21, 2017 · 6 comments

Comments

@efueger
Copy link
Member

efueger commented Nov 21, 2017

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:

  • 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%)

image

image

image

Additional References

@efueger
Copy link
Member Author

efueger commented Nov 21, 2017

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

@ale7714
Copy link
Contributor

ale7714 commented Nov 22, 2017

👋 @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
Copy link

zanona commented Nov 22, 2017

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
Copy link

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
Copy link

+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
Copy link

Any update on getting branch coverage into codeclimate?

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

No branches or pull requests

6 participants