# Badge showing 0% coverage

**URL:** <https://community.codecov.com/t/badge-showing-0-coverage/859>\
**Category:** Support\
**Created:** [January 7, 2020, 1:31pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859 "2020-01-07T13:31:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwetherfield](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bwetherfield](https://community.codecov.com/u/bwetherfield)\
**Post date:** [January 7, 2020, 1:31pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/1 "2020-01-07T13:31:10Z")

</div>

My codecov badge is showing 0% for my repo, which until recently was above 95% (the main page seems to match the higher coverage: [https://codecov.io/github/bwetherfield/PitchSpellingModel](https://codecov.io/github/bwetherfield/PitchSpellingModel))  
[https://codecov.io/gh/bwetherfield/PitchSpellingModel/branch/latest/graph/badge.svg](https://codecov.io/gh/bwetherfield/PitchSpellingModel/branch/latest/graph/badge.svg)

Relatedly, my travis builds fail to upload codecov data: [https://travis-ci.com/bwetherfield/PitchSpellingModel/jobs/273048997](https://travis-ci.com/bwetherfield/PitchSpellingModel/jobs/273048997) , but strangely my codecov dashboard does seem to update.

Source repository: [GitHub - bwetherfield/PitchSpellingModel: Model to Spell Musical Pitches](https://github.com/bwetherfield/PitchSpellingModel)

Does anyone have insights on this issue? Thanks!

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [January 7, 2020, 1:56pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/2 "2020-01-07T13:56:42Z")

</div>

Hi @bwetherfield

It looks like we have a record for b5dcfe3d41ad73c6a6608eb19b75b6067253d0e6, but it didn’t upload in time, so it’s in an error state. Do you know the rough size of the report? Sometimes a large report can cause a failure to upload.

Can you try uploading the report again and let me know if that changes anything?

---

<div class="post-metadata">

**Author:** ![bwetherfield](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bwetherfield](https://community.codecov.com/u/bwetherfield)\
**Post date:** [January 7, 2020, 4:10pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/3 "2020-01-07T16:10:14Z")

</div>

Thanks for your help, @drazisil!

I think you are most probably right that the upload is too large.

Excerpt from the report generation. Total comes to over 700MB over 13 files, with the larger file over 300MB (before gzipping).

```
==> Reading reports
+ ./Algebra.framework.coverage.txt bytes=16260
+ ./Pitch.framework.coverage.txt bytes=119654
+ ./DataStructures.framework.coverage.txt bytes=302323
+ ./SpellingNetworksTests.xctest.coverage.txt bytes=84240
+ ./Algorithms.framework.coverage.txt bytes=14935
+ ./SpelledPitch.framework.coverage.txt bytes=81229
+ ./SpellingNetworks.framework.coverage.txt bytes=42489
+ ./Encodings.framework.coverage.txt bytes=13771
+ ./NetworkStructures.framework.coverage.txt bytes=42618
+ ./NetworkStructuresTests.xctest.coverage.txt bytes=6509
+ ./Destructure.framework.coverage.txt bytes=671
+ ./EncodingsTests.xctest.coverage.txt bytes=7975
+ ./Math.framework.coverage.txt bytes=43336

```

I don’t think I need coverage for all these frameworks. Do you know anything about excluding them using a configuration setting?

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [January 7, 2020, 4:14pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/4 "2020-01-07T16:14:55Z")

</div>

Yes, if you use the `-f` flag of the bash uploader you can tell it which files to upload, instead of it grabbing everything that says `coverage` 😉

> <https://github.com/codecov/codecov-bash/blob/master/codecov#L94-L102>

---

<div class="post-metadata">

**Author:** ![bwetherfield](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@bwetherfield](https://community.codecov.com/u/bwetherfield)\
**Post date:** [January 7, 2020, 11:08pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/5 "2020-01-07T23:08:25Z")

</div>

Hi @drazisil,

Thanks for this! I haven’t had any luck with the -f flag. I’ve been trying various variations of `'./NetworkStructures.framework.coverage.txt'` with `*` etc. as the file to match, but this does not seem to work.

I had slightly more luck with the -J flag, e.g. `-J 'NetworkStructures'`, but I cannot get it to work with multiple targets. I need three - paths corresponding to `SpellingNetworks`, `NetworkStructures` and `EncodingsTests` respectively.

Do you know where the files live? Perhaps that could help with the targeting of the -f flag…

---

<div class="post-metadata">

**Author:** ![drazisil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/drazisil/32/496_2.png) [@drazisil](https://community.codecov.com/u/drazisil)\
**Post date:** [January 8, 2020, 2:38pm UTC](https://community.codecov.com/t/badge-showing-0-coverage/859/6 "2020-01-08T14:38:02Z")

</div>

I don’t, I’m afraid. Perhaps a search of the directories prior to uploading would help?

Here is the section of the uploader that is locating those reports, maybe it will help:

> <https://github.com/codecov/codecov-bash/blob/master/codecov#L1096-L1243>
