lemurheavy / coveralls-public

The public issue tracker for coveralls.io
http://coveralls.io
124 stars 7 forks source link

Coveralls badge showing coverage unknown #1753

Open Dolov opened 3 months ago

Dolov commented 3 months ago

Hello, I am trying to generate a test coverage badge for my project using Coveralls. However, as this is my first time working with this tool, I have encountered some unexpected issues that I have been unable to resolve myself. The test report is being generated, but the coverage badge is not displaying as expected.

The situation is similar to the one described in the issue (https://github.com/lemurheavy/coveralls-public/issues/1414) but there are some differences in my case. this my process below.

  1. After committing my code to GitHub
  2. Travis CI performs the build and sends the test report to Coveralls using the following command
    - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v

    I can see that Coveralls is receiving the test report and recognizes that it is from a Travis CI build. However, there is no branch information included, which I believe is the reason why the coverage badge is not being displayed.

this is my repo https://coveralls.io/github/Dolov/ctrl-timer I have tried delete coverall repos、set travis env -repotoken $COVERALLS_TOKEN、change other branch, but none of it worked.

I look forward to your response and assistance in resolving this issue. Thank you.

Dolov commented 3 months ago

~ I delete coverall repos , then re add the github repos, but can not receive coverage from travis, i guess i need create a new git repos