cainus / codecov.io

MIT License
44 stars 50 forks source link

code coverage shows wrong #36

Closed gorilla001 closed 7 years ago

gorilla001 commented 7 years ago

when travis shows total coverage 74%, codecov.io shows only 66.63%.

stevepeak commented 7 years ago

@pwzgorilla can you ping me a link to Codecov expressing this? I'm sure I can find an explanation to this. Thank you!

gorilla001 commented 7 years ago

@stevepeak https://codecov.io/gh/Dataman-Cloud/swan https://travis-ci.org/Dataman-Cloud/swan/builds/173864741

stevepeak commented 7 years ago

@pwzgorilla Go reports go though a filter to remove empty lines and ending brackets. This is causing the change in coverage. More here: http://docs.codecov.io/docs/fixing-reports#section-go

You can disable this in the following manner:

bash <(curl -s https://codecov.io/bash) -X fix

Thanks!

gorilla001 commented 7 years ago

@stevepeak seems no use. https://travis-ci.org/Dataman-Cloud/swan https://codecov.io/gh/Dataman-Cloud/swan

gorilla001 commented 7 years ago

@stevepeak very appreciate, but actually i have done this in another PR(https://github.com/Dataman-Cloud/swan/pull/13), and still no effect, travis shows 70%+, but codecov shows 60%+.

Very appreciate!