# Code coverage report generated using codemagci CI not showing any results after uplaod to codcov

**URL:** <https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654>\
**Category:** Support\
**Created:** [May 17, 2022, 11:31am UTC](https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654 "2022-05-17T11:31:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madanshah114](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/madanshah114/32/2428_2.png) [@madanshah114](https://community.codecov.com/u/madanshah114)\
**Post date:** [May 17, 2022, 11:31am UTC](https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654/1 "2022-05-17T11:31:05Z")

</div>

_Please search for similar issues before creating a ticket._  
_If you are using GitHub, have you tried adding the [Codecov GitHub app](https://github.com/apps/codecov)?_  
All fields below are required.

### Description

Description of the issue

I am using codemagic as a CI tool to build and publish flutter app. I have integrated codcov for code coverage. I am able to generate code coverage report and upload it to codcov but still get error when I open up commit page in codcov. I implemented the above task using the following document ([Codecov integration - Codemagic Docs](https://docs.codemagic.io/integrations/codecov-integration/)). Based on the codcov page it says CI failed and upload is empty.

### CI/CD URL

Please provide a link to the CI/CD run.

> **[CI/CD for Android, iOS, Flutter and React Native projects](https://codemagic.io/app/620bf25db90d55fcf6bdb4ca/build/62834a6b290c45431f053b37)**
>
> Boost your mobile app development with continuous integration and delivery. Replace manual intervention and build, test and deliver mobile apps 20% faster with CI/CD for mobile

### Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

```auto
mobile-flutter&name=&tag=&flags=&parent=
[2022-05-17T07:16:52.191Z] ['info'] https://codecov.io/github/NARRPR/rpr-mobile-flutter/commit/794d95cbd74dbde4305c0250e58f9d2f24343c7a
https://storage.googleapis.com/codecov/v4/raw/2022-05-17/66B5A1B5C0C2B409DBA937A02C198FD0/794d95cbd74dbde4305c0250e58f9d2f24343c7a/9a15d6c7-0271-4c04-8b66-0e09d8cf1a14.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220517%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220517T071652Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ba32e177cbd8654dacb051ac4659007f8e84ff3a439c3fc1a836f06e7800c01a
[2022-05-17T07:16:52.191Z] ['info'] Uploading...
[2022-05-17T07:16:52.405Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/NARRPR/rpr-mobile-flutter/commit/794d95cbd74dbde4305c0250e58f9d2f24343c7a"}

```

### Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

### Actual Results

Please provide what actually happened.

### Additional Information

Any additional information, configuration, or data that might be necessary to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 17, 2022, 6:01pm UTC](https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654/2 "2022-05-17T18:01:02Z")

</div>

@madanshah114 can you provide the CI configuration and the entire Codecov snippet?

---

<div class="post-metadata">

**Author:** ![madanshah114](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/madanshah114/32/2428_2.png) [@madanshah114](https://community.codecov.com/u/madanshah114)\
**Post date:** [May 17, 2022, 6:30pm UTC](https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654/3 "2022-05-17T18:30:30Z")

</div>

Hi @tom

Here is the Ci snippet for codecov:

````
    ```
   - name: Coverage report

    script: |

      HOMEBREW_NO_AUTO_UPDATE=1 brew install lcov

      mkdir -p test-results

      flutter test --coverage --machine > test-results/flutter.json  

      cat test-results/flutter.json

      code_coverage=$(lcov --list $FCI_BUILD_DIR/coverage/lcov.info | sed -n "s/.*Total:|\(.*\)%.*/\1/p")

      echo "Code Coverage: ${code_coverage}% "

      if (( $(echo "$code_coverage < $CODE_COVERAGE_TARGET" | bc) )); then { echo "code coverage is less than expected" && exit 1; }; fi  

    test_report: test-results/flutter.json

  - name: uplaod code coverage report

    script: |

      #!/bin/bash

      curl -Os https://uploader.codecov.io/latest/macos/codecov  

      chmod +x codecov

      echo ${CODECOV_TOKEN}

      ./codecov -t ${CODECOV_TOKEN} -f "test-results/flutter.json"

````

```auto

```

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [May 24, 2022, 5:34pm UTC](https://community.codecov.com/t/code-coverage-report-generated-using-codemagci-ci-not-showing-any-results-after-uplaod-to-codcov/3654/4 "2022-05-24T17:34:04Z")

</div>

Hi @madanshah114, I meant the snippet from CI (it should have the Codecov logo as ASCII) e.g.

```auto
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.2.3

```
