-
-
Notifications
You must be signed in to change notification settings - Fork 129
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 branch percentage bug? #96
Comments
Hmm 🤔 For master branch, this api And the "default" endopoint: |
I mostly expected it was going tot be a bug in the Coveralls API. Not sure how shields.io is getting 100% (it's possible they have it cached maybe -- though the build the lower % is from is quite old so 🤷♂️ ). Thanks for taking a look @amio |
It looks like shields.io is not even using an API for coveralls is what's happening -- it just loads |
I think what they do is getting the result of coveralls.io's default badge data. coveralls.io use redirection for performance (no need to generate badge svg on the fly), then shields.io read the |
coveralls.io's "official" badge shows Seems the official badge might be outdated sometime, and shields.io try to be consistent with official badge. |
Well, 100% is correct for master branch. The lower % you are seeing is from a pull request. Using shields.io means that a badge will show coverage of repo code but switching to badgen.net with this bug means it will show whatever the most recent pr to the repo is instead it seems. |
Hmm, yes. If there's no api for that, I should use same method as shields. |
This is amazing, thank you! |
Call it Coveralls, and don't hate it more. 🤣 |
What? Call it "coveralls" on label? |
No no.. :D Just trolling Coveralls, cuz always was not good. |
😂 |
I'm not sure if this is a bug in badgen or Coveralls API, but shields.io seems to be returning the expected 100% while badgen seems to be using a percentage from a recent PR.
Badgen URL:
https://flat.badgen.net/coveralls/c/github/expressjs/morgan/master
shields.io URL:
https://img.shields.io/coveralls/expressjs/morgan/master.svg?style=flat-square
Rendered:
Badgen:
shields.io:
The text was updated successfully, but these errors were encountered: