I am trying to use coveralls.io to show a coverage badge for my tests, but the coverage badge is stuck on "unknown".
The relevant repo is here: https://github.com/cfogelberg/grunt-set-app-mode
When I look at coveralls.io for that repo I see the same "coverage: unknown" status: coveralls.io/r/cfogelberg/grunt-set-app-mode
However, the individual builds are being correctly sent to coveralls.io: https://coveralls.io/builds/788669
What am I missing?
Coveralls is a web service to help you track your code coverage over time, and ensure that all your new code is fully covered. There is but one prerequisite for Coveralls Cloud (Coveralls Enterprise can use a variety of repo-hosting options): Your code must be hosted on GitHub, BitBucket, or GitLab.
If clearing your local cache isn't fixing the image, the problem is likely that it was cached by Github as a part of their image URL anonymization process.
You can force Github to clear their cache of the image with the following curl command. Change the example URL to the one from the your repo, it will always be https://camo.githubusercontent.com/
followed by a long hash.
curl -X PURGE https://camo.githubusercontent.com/4d04abe0044d94fefcf9af2133223....
Source: GitHub Help: About anonymized image URLs
What am I missing?
It's possible that your browser cached the image. I realized this was happening to me recently. I couldn't understand why my badge said one thing on my github page, but something different on the badge's website.
Now I tend to check websites in a Chrome incognito window so I don't have the cache to worry about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With